Archived topic
how can i set my site title (site branding) to an H1
19 replies · Started by omer on April 11, 2017
hello ,
i was looking at my site title name called (בניית אתרים) on the top right
<p class="main-title" itemprop="headline">
בניית אתרים
</p>
how can i CONVERT it to an H1 ?
THANKS
Hi Omer,
Don't think we can actually convert it to h1 but we can give the main-title class the same style as h1 like this:
.main-title {
font-size: 25px;
color: #000;
font-weight: bold;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know the style you want and I can give you the full code.
Not a good idea to make it an H1, because that will give you two H1s per page, which hurts SEO.
i dont need to make the font bigger leo , i need it to be orgenazied and <p> for the main title it is a big issue .
my main title is paragraph ?there must be a code that i can put in the function.php ot the content.php or the page.php that will solve me this problem .
tom i mean that ahen i am on my home page my site title should be H1 but if i go to any other page the site title could be a <p> tag and the new page title or new post title should be an H1 .
if i switch to twenty17 theme it works fine like it should be .
there must be some code for that .
That's how it works in GP, if you're on your posts page it will be an H1, and it will turn to a paragraph tag on static pages.
Make sure you're not using any custom functions/your site title in GP Hooks as it won't use the core GP functionality.
Also make sure you're using the latest version of the theme.
i am not sure i understand you tom .
my site title is always on <p> tag not matter what i do or where i go posts or pages also i didnt do any custom functions .
is there any way i can change it ?
regards omer
Can you link me to your site?
No custom functions at all? Or anything in GP Hooks? That's not the standard behavior anymore, the H1 on the blog page was introduced in 1.3.41 on November 30, 2016.
Might be worth doing a fresh install just to test on your end.
hi tom
here is a fresh instalation AND every thing is correct like you said.http://xn--4dbbfhtdabtsd1a1i0ab.co.il/
in my problem site i delete and install again the theme with updated and it still the same .
any ideas ?
note :beside css code that you gave me i didnt do anything .
i installed on another domain and the same issue
look here
Ignore the last post that suddenly works weird to me anyway just one site makes me trouble
this site בניית אתרים
please tom help me with that i dont know what to do and i dont like to find another theme .
i love your theme and your support .
i will give you my c-panel creditials and see for your self .
please tom
You can send me temporary admin login details to the problem site if you like: https://generatepress.com/contact/
i sent you .
thanks tom i hope you will make it !
regards omer