This topic has 10 replies, 3 voices, and was last updated 9 months, 1 weeks ago ago by Luca Rossi
I’d like to change all h2 headings without having to change each individual post
Hello, @Rich Kil,
Thank you for contacting us and for using XStore.
Should you desire to modify the title of a single post to an H1 heading, we kindly direct your attention to the following discussion thread for guidance:
https://www.8theme.com/topic/how-do-i-make-the-header-as-h1-for-an-article/
https://www.8theme.com/topic/change-single-blog-title-heading-from-h2-to-h1/
We trust that the information provided will effectively address your concern.
Warm regards,
The 8Theme Team
Is there a way I can set h2 headings in a setting so that all h2 headings are set the same way without having to change each individual post and page?
Hello, @Rich Kil,
Thank you for your response.
Should you desire to modify the heading level of a single blog title from H2 to H1, we kindly ask you to adhere to the following instructions to accomplish this task.
Please replace the existing code:
<h2><?php the_title(); ?></h2>
to
<h1><?php the_title(); ?></h1>
We would like to inform you that the required modifications are not to be made within the CSS file. Instead, you should focus on the PHP code. Please proceed by copying the ‘single.php’ file from the Parent Theme directory, located at ‘wp-content/themes/xstore’, to the Child Theme directory, which can be found at ‘wp-content/themes/xstore-child’.
Once you have successfully copied the file, you will need to locate and replace the specific line of code within the ‘single.php’ file in the Child Theme. This adjustment is expected to rectify the issue you are experiencing.
We trust this will assist you in making the necessary changes. Should you require any further assistance, please do not hesitate to reach out.
Best Regards,
The 8Theme Team.
Do I copy ‘single.php’ file from the Parent Theme directory and paste it in the folder icon in ‘wp-content/themes/xstore-child’?
Then, make the change from
to
Will this change all headings on every single post ?
Hello, @Rich Kil,
Yes, you are right. Implementing this modification will indeed alter the heading titles from H2 to H1 across all individual posts on your website.
Warm regards,
The 8Theme Team
That did not seem to work. Please look over screenshots. I uploaded single.php to child theme and made change from h1 to h2. I saved work to child theme only.
https://ibb.co/NmBr0vw
https://ibb.co/mJdsFfM
https://ibb.co/0DMWgDV
Hello, @Rich Kil,
We appreciate your prompt response to our previous communication.
To assist you more effectively, we kindly request that you provide us with the URL of the relevant page, along with the login credentials for the WordPress admin panel. Additionally, we require FTP access details. Please ensure that this sensitive information is submitted through a secure, private content area to maintain confidentiality.
To create FTP access (FTP host, FTP username, FTP password, FTP port, FTP encryption) , please contact your hosting provider for assistance.
We kindly recommend that you take a complete backup of your site before proceeding.
Your cooperation in this matter will enable us to thoroughly examine your settings and facilitate a timely resolution to the issue at hand.
Thank you for your attention to this request. We look forward to your response.
Warm regards,
The 8Theme Team
attached credentials
Dear Rich Kil,
We would like to address the matter you’ve highlighted regarding the product category page. Upon review, it appears that you are referencing the text editor section. We regret to inform you that due to the nature of the text editor, it is not possible to implement the template directly within this area.
For your reference, here is a screenshot illustrating the issue: [https://prnt.sc/yiuKgYQvVXY-](https://prnt.sc/yiuKgYQvVXY-)
As a result, it will be necessary to manually adjust the heading tags, changing the h1 elements to h2 for each individual category.
If you would like to change the styles for all headings of product category pages. Please add the following custom CSS under Theme Options > Theme Custom CSS > Global CSS:
.term-description h1,
.term-description h2 {
color: red;
font-size: 60px;
}
We apologize for any inconvenience this may cause and appreciate your understanding in this matter. Should you require further assistance or have any additional questions, please do not hesitate to reach out.
Warm regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up