Home › Forums › WoodMart support forum › Change title tag of footer headers
Change title tag of footer headers
- This topic has 7 replies, 3 voices, and was last updated 4 years, 1 month ago by
Artem Temos.
-
AuthorPosts
-
April 9, 2021 at 8:59 am #280599
protectionshopnlParticipantHello there,
I’m wondering how we can change the standard header titles of footer headings. We’re inserting footer elements via the widgets tab. Standard footer titles are <h5> (see the attached screenshot) but we would like to have them <h2> with the same styling as they are now.
How can we accomplish this? Thank you!
Regards,
FabianApril 9, 2021 at 12:57 pm #280811
Aizaz Imtiaz AwanKeymasterHello,
Sorry but there is no option in Theme Settings available for that.
It requires customizations and this is beyond our limitations and support policy.
Regards.
Xtemos StudiosApril 9, 2021 at 1:07 pm #280821
protectionshopnlParticipantHello Aizaz,
Of other elements we can easily change title elements and those headings.
Maybe it’s an solution of instead using the preformatted “title” box, to write the title in normal HTML? If we use <h2>TITLE</h2>?
Regards,
FabianApril 9, 2021 at 1:29 pm #280834
Aizaz Imtiaz AwanKeymasterHello,
You can try implementing the solution if this works for you.
Regards.
Xtemos StudiosApril 9, 2021 at 1:44 pm #280859
protectionshopnlParticipantHello Aizaz,
I will check this!
How can I assure the <h2> is the same styling as now used in the regular title box configured via Woodmart?
Regards,
FabianApril 9, 2021 at 3:02 pm #280910
protectionshopnlParticipantHello Aizaz,
Ignore my previous reply. I’ve seen the following setting in Woodmart > Theme Settings > Typography. There is a setting “Widget titles font” / Typography options for titles for widgets in your sidebars. Here we can exactely style our widget titles. But not the HTML title tag <h2>, <h3> or <h4> that it should have.
Is there a workaround for this? Because not using the widget title box, but typing it in html like <h2>title name</h2> makes that widgets are not collapsing on mobile anymore. Because there’s not entered an main title in the title placeholder.
Hope we can fix this. I can easily see this in developer view in Google Chrome and edit this.. But don’t know where to find it in the settings or theme.
Regards,
FabianAttachments:
You must be logged in to view attached files.April 9, 2021 at 3:11 pm #280914
protectionshopnlParticipantHello Aizaz,
Other themes can use snippet code in the functions.php file for this. For example this piece of code: https://www.denisbouquet.com/wordpress-h1-widget/
// CHANGES WIDGET HEADINGS TO H3 (INSTEAD OF H1)
add_action( 'after_setup_theme', 'remove_parent_theme_features', 10 ); function remove_parent_theme_features() { remove_action( 'init', 'sempress_widgets_init' ); add_action( 'init', 'ph_sempress_widgets_init' ); } function ph_sempress_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar 1', 'sempress' ), 'id' => 'sidebar-1', 'before_widget' => '< section id="%1$s" class="widget %2$s">', 'after_widget' => '< /section>', 'before_title' => '< h3 class="widget-title">', 'after_title' => '< /h3>', ) ); }
Maybe some elements/pieces of code are different for Woodmart? But the scope is the same.
Regards,
FabianApril 10, 2021 at 8:12 am #281140
Artem TemosKeymasterHello,
You can change this in the file
woodmart/inc/theme-setup.php
. The function is calledwoodmart_widget_init()
.We will also add an option to change that tag in our future updates.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register