Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38994
    Todd M
    Guest

    Good Morning – I have been trying to figure out how to change the Heading Class for my site description From h3 to h1. I’ve been searching for it in the custom css and can’t find it… There is no option to change it in the customize section of the boldgrid editor. I’m using the Vacation theme.

    Please help me! I’m in the process of making my site ADA compliant…….

    Thank you

    #39001
    Joseph W
    Keymaster

    Thank you for contacting us Todd, our team is happy to answer any questions you have about working with our Vacation WordPress theme on your website!

    Unfortunately there isn’t an option to change which element is used to display the Tagline through the Vacation theme Customizer, however we can use a PHP filter to modify the settings for that element in the theme configuration. The following snippet will change your Tagline to use an H1 instead of an H3:

    function modify_site_description($configs){
    $configs['template']['tagline'] = '<h1 class="site-description %s">%s</h1>';
    return $configs;
    }
    add_filter( 'boldgrid_theme_framework_config' , 'modify_site_description' );
    
    

    My preferred way of adding PHP to my websites is with the Code Snippets plugin since it allows my custom PHP to persist through theme updates without having to create my own child theme to manage my customizations. Code Snippets also allows you to control where the script is run on your website (Admin area, Front end, or both) and I recommend choosing to only run the code on the frontend to prevent any possible typos from triggering a fatal error on your website that is difficult to reverse. I tested the provided code on my own site and did not have issues so you should be safe, but it never hurts to be careful!

    I hope that filter helps you improve your website’s ADA compliance Todd and please let us know if there is anything else that we can do to assist you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘BoldGrid Vacation Theme – Change Tagline Element’ is closed to new replies.