-
AuthorPosts
-
August 19, 2013 at 7:03 pm #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
August 20, 2013 at 4:24 am #136323Hey,
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
August 21, 2013 at 11:24 pm #136324Hi 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
August 24, 2013 at 7:21 am #136325Hey,
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
August 27, 2013 at 3:24 pm #136326What 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
August 28, 2013 at 8:42 am #136327Hi,
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));
August 30, 2013 at 4:09 pm #136328That worked. Thanks again for your help!
August 31, 2013 at 2:49 am #136329 -
AuthorPosts
- The topic ‘Blog strong class="main title" change to h1 class’ is closed to new replies.