Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #301250
    Pianotuner
    Participant

    Hello, I need to change the attribute <h2 <span class=”html-attribute-name”>class</span>=”<span class=”html-attribute-value”>entry-title</span>”> in inner pages, corresponding to the page title displayed in the middle of the header image. I need to replace it with <h1 <span class=”html-attribute-name”>class</span>=”<span class=”html-attribute-value”>entry-title</span>”> which is what already happens in the home page. I searched in all php files of the theme but couldn’t find a solution, can you please let me know which file I should edit? Many thanks for you help.

    #301258
    Skandha
    Participant

    @pianotuner: Hello there,

    Can you please post in your site URL and clarify which h2 tag you are referring to so that I can further help you?

    Kind Regards,
    Skandha

    #301263
    Pianotuner
    Participant

    Thanks for your reply. Let’s refer for example to the following page:

    https://www.pianofortipiscopo.com/laboratorio/

    The title displayed in the middle of the header image is “Laboratorio: fra legno, acciaio e magia” and it corresponds to the page title. However, that title is a H2 (as you can see from the source code, it is h2 <span class=”html-attribute-name”>class</span>=”<span class=”html-attribute-value”>entry-title</span>”) and I need to replace it with H1 (h1 <span class=”html-attribute-name”>class</span>=”<span class=”html-attribute-value”>entry-title</span>”), as it already happens in the home page. I want page title and H1 be the same in all pages, not only the home. Can you please let me know which file in the theme I should edit? Thanks

    #301300
    Skandha
    Participant

    @pianotuner: Hello there,

    Since you are already using a child theme.

    Go to => Child theme folder => functions.php and add the code in this link.

    Let me know if this works out!
    Kind Regards,
    Skandha

    #301308
    Pianotuner
    Participant

    It works! Thank you so much!

    #301351
    Skandha
    Participant

    @pianotuner: Hello there, I hope I was able to resolve your issue. If it’s not too much trouble, I have a quick request: could you please leave an honest review?
    https://wordpress.org/support/theme/travelore/reviews/#new-post
    Your review will help others know what to expect when they’re looking for the support I offer. Even a sentence or two would be hugely appreciated. Thanks, and if there’s anything else at all that I can do to help,
    don’t hesitate to let me know.

    Kind Regards,
    Skandha

    #301361
    Pianotuner
    Participant

    Sure I will! I’d like to ask you one more thing: how can I remove “Travelore Child by Catch Themes” in the footer just after the copyright? Thanks

    #301382
    Pianotuner
    Participant

    Hi again, I know that only the pro version allows to edit the footer, but can you just let me know how I can hide from CSS the “Travelore Child by Catch Themes” wording? Thanks

    #301411
    Skandha
    Participant

    @pianotuner: Hello there,

    I checked your site and you seem to have figure it out. Let me know if you come across anymore issues. Have a good day! 🙂

    Kind Regards,
    Skandha

    #301416
    Pianotuner
    Participant

    I figured it out as I edited the template-tags.php file in the PARENT theme. This is not the best solution as everytime I update the theme I will lose the editing. I tried also to create a INC folder in the child theme and put inside the edited template-tags.php file but it doesn’t work. Can you let me know how I can solve this issue?

    #301417
    Pianotuner
    Participant

    I’ve restored the unedited file so you can see the original code, how can I edit the same file and make the changes in the child theme?

    #301418
    Skandha
    Participant

    @pianotuner: Hello there,

    I am afraid it is not possible to remove/hide Travelore Child by Catch Themes. You will need to upgrade to pro and make use of the Footer Editor Options.

    Kind Regards,
    Skandha

    #301421
    Pianotuner
    Participant

    Can you just let me know how I can link in the child theme the template-tags.php file located in the INC folder? I tried to create a INC folder and put the template-tags.php inside but it doesn’t work, the system keeps loading the template-tags.php of the parent theme.

    #301503
    Skandha
    Participant

    @pianotuner: Hello there,

    I am afraid the footer text function cannot be overridden like the code I provided you earlier as the footer text code is not child theme compatible.

    Kind Regards,
    Skandha

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘How to change h2 class=”entry-title” in inner pages (not the home page)’ is closed to new replies.