New Landing How can we help? Themeforest Theme Support Neighborhood Change class of portfolio item title in Neighborhood

Viewing 8 posts - 1 through 8 (of 8 total)
  • #56934
    lobsterass
    Member
    Post count: 386

    Hi!

    For the purpose of important SEO, I got the following nutty question:

    I would like to make portfolio item title classified as h2 and the portfolio subtitle h3 BUT I want their point sizes to be smaller than the other h2:s and h3:s on the site. It would be great if I could have it this way:

    Portfolio item title: h2, Helvetica (normal) 15 px, line-height. 17px
    Portfolio subtitle: h3, Helvetica (normal) 13 px, line-height. 20px

    Is it possible to make some kind of special solution only on this portfolio (index) page: http://monroedesign.se/

    I’m very grateful for all your help with my weird customization. SEO is very important for me. ๐Ÿ™‚

    Cheers!

    #56958
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You need to edit line 271 in sf-portfolio.php in the swift-framework folder.

    $portfolio_items_output .= '<h4 class="portfolio-item-title" itemprop="name headline"><a '.$link_config.'>'. $item_title .'</a></h4>'. "\n";
    					}

    and then add this css:

    .portfolio-item h2.portfolio-item-title {
      font-weight: normal;
      margin-bottom: 5px;
      margin-top: 6px;
      text-align: center;
    }

    Hope this helps

    – Kyle

    #57288
    lobsterass
    Member
    Post count: 386

    YEAH MAN! I’m starting to believe I can do this thanks to you, Kyle!

    It worked when I added font size to it. I put it here just in case someone else needs it:

    .portfolio-item h2.portfolio-item-title {
    font-size: 15px;
    font-weight: normal;
    line-height: 17px;
    margin-bottom: 5px;
    margin-top: 6px;
    text-align: center;
    }

    Thank you!

    #57300
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! ๐Ÿ™‚

    #57301
    lobsterass
    Member
    Post count: 386

    AND! I managed to figure out the h3 for the sub title too! You’re awesome!

    .portfolio-item h3.portfolio-subtitle {
    font-size: 13px;
    font-weight: normal;
    line-height: 18px;
    margin-bottom: 5px;
    text-align: center;
    }

    #57303
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Good work!

    – Kyle

    #57305
    lobsterass
    Member
    Post count: 386

    Yeah…I’m good at making YOU work. ๐Ÿ˜€

    #57310
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Haha

    I’ll close this topic now

    – Kyle

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register