Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #28064

    We would like to change the blog page “strong class=”main title” to be an h1 class like the other pages in the theme. We modified the CSS so that the font size is bigger but it is not modifying the blog “news” page

    You can see the page here.

    http://13015.duvosoftware.com/news/

    Thanks for the help

    #136323

    Hey,

    You can use this:

    .title_container .main-title {
    margin: 0;
    font-size: 40px;
    position: relative;
    z-index: 2;
    min-height: 36px;
    line-height: 2.3em;
    top: 0;
    font-weight: 400;
    }

    Regards,

    Ismael

    #136324

    Hi Ismael,

    We tried that already and it makes the news/blog title work but it blows up the titles on all of the other pages to double it’s size. The problem is not the css .title_container .main-title that is good on all pages. The problem is that we need to get into the php file that is calling for the news/blog title and fix the code “strong class=”main title” to h1 class. Any idea of where we should be looking?

    Thank you,

    Jason

    #136325

    Hey,

    You can find it on functions-enfold.php:

    'title' 		=> get_the_title($id),
    'subtitle' => "", //avia_post_meta($id, 'subtitle'),
    'link' => get_permalink($id),
    'html' => "<div class='{class} title_container'><div class='container'><{heading} class='main-title'>{title}</{heading}>{additions}</div></div>",
    'class' => 'stretch_full container_wrap alternate_color '.avia_is_dark_bg('alternate_color', true),
    'breadcrumb' => true,
    'additions' => "",
    'heading' => 'h1' //headings are set based on this article: http://yoast.com/blog-headings-structure/

    Regards,

    Ismael

    #136326

    What part of the code do I need to change in order to get the blog (News) page stop displaying the code “strong class=”main title” and change it to h1 class? From what I am reading it should be “H1” but it is not.

    http://13015.duvosoftware.com/news/

    Thank you,

    Jason

    #136327

    Hi,

    Open up index.php and replace

    if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));

    with

    if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'h1', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));

    #136328

    That worked. Thanks again for your help!

    #136329

    Hey,

    Glad we could help. :)

    Cheers,

    Ismael

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

The topic ‘Blog strong class="main title" change to h1 class’ is closed to new replies.