New Landing How can we help? Themeforest Theme Support Neighborhood ATT KYLE: Testimonial change class from h4 to h2

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

    Hi!

    It’s the never ending asking Swede again!

    I want to change the class of my testimonial slider on: http://monroedesign.se/om-oss-2/

    From h4 to h2. One reason is SEO and the other reason is that I want it bigger.

    What I wish:
    Testimonial: underlined, helvetica normal, 20px, line-height 24,

    which is what my underlined h2:s are now, custom styled with their widget class: pb0 mb0 mt0 bb0 bt0 no-arrow pb0
    http://support.swiftideas.net/forums/topic/change-class-of-widget-title-to-h2/
    Kyle gave me this code before which works great for my h1:s and h2:s:

    Underlined H2

    .full-width-text h1, .full-width-text h2 {
    border-bottom: 2px solid #222222;
    display: inline-block;
    font-size: 20px;
    font-weight: normal;
    line-height: 24px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    }

    Can we do this? Or am I officially a custom code addict? ๐Ÿ˜‰

    Cheers!

    #57007
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Haha same again, change line 95 in testimonial-slider.php in swift-framework/page-builder/shortcodes/

    $output .= ($title != '' ) ? "\n\t\t\t".'<div class="heading-wrap"><h4 class="spb_heading spb_text_heading"><span>'.$title.'</span></h4></div>' : '';

    – Kyle

    #57067
    lobsterass
    Member
    Post count: 386
    This reply has been marked as private.
    #57073
    lobsterass
    Member
    Post count: 386

    Sorry, I think I was inside the old folder on the FTP and made chan
    ges. Site seems OK….I’ll try again a little later. Now it’s basketball practice!

    #57139
    lobsterass
    Member
    Post count: 386

    Sorry, I think I was inside the old folder on the FTP and made changes. Site seems OK….I’ll try again now. In the right folder. ๐Ÿ™‚

    #57172
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok let me know how you get on ๐Ÿ™‚

    #57262
    lobsterass
    Member
    Post count: 386

    It works! Awesome. It wasn’t as bad as I thought to edit php.

    Now testimonial slider title is h2. Perfect. Now, the great class you gave me for making it underlined, thin and just like my other h1:s and h2:s don’t work for the testimonial slider though.

    It should be:

    border-bottom: 2px solid #222;
    display: inline-block;
    font-size: 20px;
    font-weight: normal;
    line-height: 24px;
    margin-bottom: 5px;
    padding-bottom: 5px;

    ….and it would be great if it could have that nice grey line in top of testimonial background (see image please) + no white space at bottom of page. I have these classes separately but I don’t know how to make them all work together.

    Thank you for teaching me new things, Kyle! I didn’t know any of this stuff not long ago.

    <3

    A

    #57283
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem it’s been a pleasure helping you ๐Ÿ™‚

    Here you go:

    .spb_wrapper.slider-wrap .heading-wrap h2 {
      border-bottom: 2px solid #222222;
      display: inline-block;
      font-size: 18px;
      font-weight: normal;
      padding-bottom: 10px;
    }

    This should work

    – 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