Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #557867

    is there any way to create a template page and use the parallax section?

    I’ve tried using a shortcode:

    <?php echo do_shortcode("[av_section min_height='' min_height_px='500px' padding='default' shadow='no-shadow' bottom_border='no-border-styling' id='' color='main_color' custom_bg='' src='/wp-content/uploads/2015/12/structure-data-header.jpg' attachment='39462' attachment_size='full' attach='parallax' position='center center' repeat='no-repeat' overlay_enable='aviaTBoverlay_enable' overlay_opacity='0.5' overlay_color='#000000' ].$myinfohere.[/av_section]")?>;
    <?php get_footer(); ?>
    

    into a custom template, but the parallax section surrounds the footer too.

    here is what happens. http://awesomescreenshot.com/0585ij49a1

    is there a better way to do this or am i missing something?

    #557918

    Hi rudtek!

    You generally cannot use fullwidth elements like that because they break the surrounding containers and re-open them again. You can try playing around with it yourself by doing stuff like this.

    <?php echo '</div></div>'; ?>
    
    <?php echo do_shortcode(); ?>
    
    <?php echo '<div><div>'; ?>
    

    But I am not sure of the exact combination that is needed or if it’s possible. It would be best to just use the layout builder and save a template to re-use again and again.

    Regards,
    Elliott

    #558214

    i can’t use the layout builder, I’m calling pretty specific wp queries. Can you tell me what divs are being opened and closed? I’m assuming that on opening them i’ll need to re-establish the correct classes for the divs.

    #558254

    Hi!

    Will not be that simple.
    You will have to add the element you want, then go ahead and copy it HTML and paste it as custom template, where ou need to
    It is the only option, to manage make it work.

    Let us know if that is clear on how to move on.

    Cheers!
    Basilis

    #558261

    so you’re saying i have to paste the exact html that is outputted from the shortcode? so demo it out on a test page, copy the html, then place THAT into my custom template? WOn’t that result in the same problem?

    #558319

    Hey!

    You could also try what Basilis suggested and create the page your wanting to display and then view it on the frontend and copy all of the HTML that is output inside the main container and then paste that into yoru custom template. There really wouldn’t be a point to this though because it would be the same for every page you use the template on.

    It would be best to just create the page and save it as a template (click on the big blue button in the layout builder) to re-use.

    Best regards,
    Elliott

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.