Home Forums WoodMart support forum File logo.php

File logo.php

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #102803

    zeybix
    Participant

    Hello,

    I would like the <H1> tag on the home to be the logo but if I do this the H1 appears twice. One in the main logo and another H1 in the sticky logo.

    Is there any way that it is only H1 in the main logo and not in the sticky one?

    #102841

    Artem Temos
    Keymaster

    Hi,

    Yes, sticky header takes the logo HTML code so if you will add H1 there, it will be used twice. It would be better to put the H1 tag somewhere on the page and not in the logo in this situation.

    Regards

    #102924

    zeybix
    Participant

    Yes, I know that. There are many websites that use only in the Home, just like us, the H1 in the logo because this way you do not break the aesthetics of the web and for Google it is still correct.

    The problem is that the template calls the same file on the nav and on the sticky.

    Is there any way to identify when calling the logo.php file the sticky?

    #102927

    Artem Temos
    Keymaster

    The sticky header is built from the main header elements that is why it is not possible to split the logo code there.

    #102931

    zeybix
    Participant

    But, is it possible to idenficiar in the file logo.php when the call is made from the main nav and when from the nav sticky?

    #102932

    zeybix
    Participant

    But, is it possible to identify in the logo.php file when the call is made from the main nav and when from the nav sticky?

    #102975

    Artem Temos
    Keymaster

    Sticky header is generated with JS code so it takes the copy of the main header elements.

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