• Resolved davidsteel

    (@davidsteel)


    Hi again

    Ben, i’ve another question: I create a slider with the plugin “Soliloquy” for my header. At which position in the header.php must the code be inserted?

    Thx in advance
    David

    • This topic was modified 6 years, 12 months ago by davidsteel.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hey David,

    The first thing you’ll need is a “child theme”. You can edit the header.php file in Tracks, but when you update to a new version of Tracks the header.php file will be overwritten and you’ll need to add the slider again. Child themes are WordPress’ way of allowing you to edit theme files without losing changes.

    I have a child theme for you with a comment where you can add the Soliloquy function in header.php: download child theme. It can be uploaded and activated through the Appearance menu like a regular theme.

    I believe Soliloquy has a PHP function you can use there, but if you have a shortcode instead it can be output like this:

    <?php echo do_shortcode('[example id="99"]'); ?>

    I am reading this and also just downloaded Soliloquy and I cannot find the header.php in the child theme (I’m using Dustland Express as the theme) I can find header.php in the theme, but not appearing in child theme.
    I have created a slider in pages posted, but still want to replace the header title with a slider…Any advice?
    Thanks
    PS: website is: https://penhurst.net

    Theme Author Ben Sibley

    (@bensibley)

    This support forum is only for the Tracks theme, so I’m afraid I won’t be able to provide specific customization advice here. However, child themes don’t usually have a header.php file in them by default regardless of the theme being used. You’ll want to copy your parent theme’s header.php file into your child theme and then you can edit it there.

    Here is the support forum for Dustland Express where you will be able to find more assistance: https://www.ads-software.com/support/theme/dustland-express

    Thanks! Will do!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add slider code in the header.php’ is closed to new replies.