1. CYBER MONDAY SALE Get Divi.Help Pro Membership @ $99 / lifetime & instantly gain access to all our Divi.Help Pro Membership perks.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed.Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Sidebar Widget Heading

Discussion in 'Free Divi Community Forum' started by Spencer Greystrong, Nov 23, 2024.

  1. Spencer Greystrong

    Spencer Greystrong New Member

    Good morning. When I created the sidebar on the home page - https://slhc.org.uk/ - I used H4 for the heading, not appreciating that when I use Page Speed Insights it objects to the idea that the main heading is H2 and the sidebar H4. I have tried everything I can think of to change it to H3 through the edit routines but no joy. According to the Help pages the heading line should appear as the first option but it doesn't. It is there if I make a brand new sidebar but not when I try to change the current one. Any ideas please?
     
    1. PRO MEMBER PERKS Divi.Help One-Page Layouts - Beautifully crafted one-page Divi layouts just for you:View All Layouts
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try to add the below code in your child theme functions.php:
    Code:
    Log In or Sign Up to view this code.
     
  3. Spencer Greystrong

    Spencer Greystrong New Member

    That worked a treat, thanks. Small problem in that I don't have a child theme, everything is done on the master. I added the code to functions.php which solved the problem but obviously, every time we get a Divi update I will lose the code. I can easily save the code and re-add it but I wondered if there was any way it could be added in a permanent way. Otherwise I guess I will have to learn all about child themes and how to use them!:(
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade rolling text design for your Divi site without using any plugins:View Demo
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Perhaps this plugin can allow you to input PHP snippets: https://wordpress.org/plugins/code-snippets/
     
  5. Spencer Greystrong

    Spencer Greystrong New Member

    Thanks for the plugin advice. Had a quick look and seems quite straightforward. I've saved your code, given it a name and presumably run it every time there is a Divi update.
    I have another question about functions.php but it is not directly related to this query so I will start a new thread.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gradient text design for your Divi site without using any plugins:View Demo
  6. Spencer Greystrong

    Spencer Greystrong New Member

    I thought I would finish off this thread by thanking you for your advice about the plugin. I deleted my original edit and used it to make the changes. Works a treat. I also found another snippet that changes the viewport meta which I have been amending after each Divi change. The snippet now removes the original line and replaces it with the update. Saved me learning how to create a child theme!