- This topic has 13 replies, 2 voices, and was last updated 2 years, 5 months ago by
Skandha.
-
AuthorPosts
-
March 10, 2022 at 5:52 am #301250
Pianotuner
ParticipantHello, 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.
March 10, 2022 at 5:53 am #301258Skandha
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,
SkandhaMarch 11, 2022 at 12:25 am #301263Pianotuner
ParticipantThanks 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
March 11, 2022 at 5:33 am #301300Skandha
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,
SkandhaMarch 11, 2022 at 6:50 am #301308Pianotuner
ParticipantIt works! Thank you so much!
March 12, 2022 at 9:00 am #301351Skandha
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,
SkandhaMarch 12, 2022 at 4:05 pm #301361Pianotuner
ParticipantSure 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
March 13, 2022 at 10:40 am #301382Pianotuner
ParticipantHi 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
March 14, 2022 at 12:48 am #301411Skandha
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,
SkandhaMarch 14, 2022 at 4:18 am #301416Pianotuner
ParticipantI 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?
March 14, 2022 at 4:44 am #301417Pianotuner
ParticipantI’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?
March 14, 2022 at 6:44 am #301418Skandha
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,
SkandhaMarch 14, 2022 at 8:32 am #301421Pianotuner
ParticipantCan 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.
March 15, 2022 at 7:05 am #301503Skandha
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 -
AuthorPosts
- The topic ‘How to change h2 class=”entry-title” in inner pages (not the home page)’ is closed to new replies.