• Hey guys

    HELP Please.

    Im trying to change the sydney slider

    the default is paragraph p> but i need it to be H1>

    class=”subtitle”><?php echo esc_html($slider_subtitle_1); ?>

    to an H1 Class

    currently i have edited this in

    Sydney: slider.php (inc/slider.php)
    to

    <h1 class=”subtitle”><?php echo esc_html($slider_subtitle_1); ?></h1>

    but it does not reflect this on the website.

    Any help would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter alexfisha

    (@alexfisha)

    The text i need as an H1 is
    Adelaide Naturopath ( why cant we upload screen shots on here?)

    Hello there,

    To edit the main slider template, you don’t have touch the theme’s file as it’s wrapped in a plugable function. So you can override it over child theme‘s functions.php file. So you’ll be safe from updating the theme in future without loosing your code modification.

    Add this code to your child theme’s functions.php file.

    In that code, I’ve changes p.subtitle to h1.subtitle.

    To make you easier creating a child theme, you can use our pre-made Sydney child theme, which can be download here from this link.

    If you don’t want to use a child theme for a certain reason, alternatively you can use the functionality plugin like Code Snippets.

    Once you’re done, you’re required to flush your site cache. Otherwise code addition won’t take any effect.

    > why cant we upload screen shots on here?

    It doesn’t allowed to maintain server disk space neatness. You should use a free file hosting service like cloudup.com or Google drive to upload your files. Then share their links in your comment reply.

    Regards,
    Kharis

    Thread Starter alexfisha

    (@alexfisha)

    Thanks for the help, i really appreciate it.
    When I add the child theme, the slider and text are default – how can i make it exactly the same (same image & text) ?

    Hello there,

    I guess when your child theme is activated, it won’t instantly load the settings you’ve done in the customizer. So you should manually transfer it. This can be done doing the below steps:

    1. Install and activate the Customizer Export/Import plugin
    2. Activate the main theme, then visit Customizer > Export/Import and export the setting file
    3. Activate the child theme, then visit Customizer > Export/Import and import the downloaded file.

    If it doesn’t work, you should open the exported file in your code editor program. Replace sydney to sydney-child, which is the folder name.

    Regards,
    Kharis

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sydney Slider H1 Tag’ is closed to new replies.