H1 tag on the logo for every page = Bad for SEO

  • Posted in : Lahanna
  • krea
    Participant

    Hi,

    In the Lahanna theme there is a H1 tag for the site title on the logo.

    It’s not a good thing for SEO because all blog post and pages will have two H1 tag per page. Normally it’s better to have only one H1 per page.

    I wanted to override the “header.php” in my child theme folder, but unfortunately the bit of code is in the “functions-header.php” file and I don’t know how to override this file in my Child Theme.

    Can you tell me how could I achieve that?

    Also, when I’m trying to override CSS with the “style.css” in my Child Theme folder it does not seem to work out. It does’nt take effect.

    Can you help me on this.

    Thanks,

    serkan
    Moderator

    Hi @krea,
    Inside html5 sectioning elements multiple h1 tags are allowed, you can check this link to learn more about it;
    Thanks

    krea
    Participant

    Hi Serkan,

    Thanks for the answer. I made some search as well and I think you’re right, since it’s HTML5 it’s ok.

    My other question was, when I’m trying to override styles with the styles.css in the child theme it’s not working.

    Can you please help me resolve this.

    serkan
    Moderator

    Hi, sorry we don’t provide support for customizations that includes editing core php files.

    krea
    Participant

    I’m not talking about core php files!!

    I’m talking about your child theme that you created. The styles.css in your child theme.

    What is that kind of support.

    I payed for your Theme and the support that comes with it.

    serkan
    Moderator

    Hi, I see you, but we don’t promise any customization work anywhere, but still, we try to help you all on some simple CSS customizations that don’t take more than just a few minutes,
    but what you are asking is not possible with just a few lines of code. The Child theme is designed for users who know coding knowledge and want to customize the website. You need to edit many style files here. For this, you need to have coding knowledge.
    Thanks for your understanding.

    krea
    Participant

    I think you don’t understand what I’m saying.

    I have coding knowledge in CSS and html.

    What i’m saying is that if you write some styles in your CSS child theme file « styles.css » it’s not overriding styles of the main theme.

    You should configure by default your CSS file so that it overrides the Main Theme styles.css

    If not, what is the point of giving a child theme to your customers?

    There is a bit of code that needs to be on top of the CSS child theme file.

    https://css-tricks.com/methods-overriding-styles-wordpress/

    You should check this out to improve your child theme that you are giving to your customers.

    If you don’t want to support the child theme, don’t provide a child theme!!

    Mehmet S.
    Keymaster

    Hi,

    You can use any css code at the end of the style.css file of your activated child theme.

    But your parent theme customizer styling settings overrides css codes of style.css file for related styling options. So you should use customizer first for style customizations.

    If you want to make more style customization, use Additional CSS field in customizer or try css !important rule in your child theme to override customizer styling options.

    For overriding “functions-header.php” file, duplicate it to your child theme folder and point the file path from child thme’s functions.php file.

    Thanks

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 the following item
Login and Registration Log in · Register