Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #124019
    ghsreutlinger
    Participant

    Somewhere I got to put this code
    echo do_shortcode("[metaslider id=340]"); in order to place a slider on the homepage.
    The homepage is a site that shows the newest content and not a particular fixed site.
    I´ve already tried to put the code into the home.php file, but I can’t manage to position the Slider on top of the Site, but below the menu.
    Now the slider is at the bottom of the website.

    The domain of the Site I´m struggling with is: http://www.ghsreutlinger-koeln.de

    Thanks a lot for any kind of help!

    #124046
    tikaram
    Participant

    @ghsreutlinger : I suggest you to create a child theme rather than directly editing the parent theme. If you edit the parent theme directly, all changes will be lost after theme update.
    Download the child theme from the following link https://catchthemes.com/wp-content/uploads/2014/05/adventurous-child1.zip
    Edit the functions.php file in the child theme and add the following function

    function shorcode_here() {
       echo 'Your shortcode goes here';
    }
    add_action( 'adventurous_before_main', 'shorcode_here', 40 );

    Note replace Your shortcode goes here with your shortcode.
    let me know if you need further assistance.

    Regards,
    Tikaram

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘where do i put php-code for a slider?’ is closed to new replies.