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

    Hi, I’m struggling with the dynamic template a little. I’m trying to create a dynamic template with a sidebar ordered in the following way

    – Page Split (slideshow area)

    – Text area (Paragraph style – contains 3rd party slider)

    – Page Split (main content)

    The problem is the sidebar runs the entire length of the page and effectively stretches the first page split (and the text area) to it’s own length and then tags the main content on the end.

    How do I work around this and achieve the traditional header/slider/content with sidebar layout?

    #109940

    …or alternatively, if I use the standard “sidebar-right” layout, how can I insert custom/3rd-party sliders into individual pages?

    #109941

    nothing?

    #109942

    If the custom/3rd-party slider offers a wordpress shortcode you can simply insert the shortcode into the page content. If the slider does not support wordpress out of the box (i.e. if it’s just a script and not a wordpress plugin) you can use the html editor (switch from visual to html mode) to insert your slider code directly into the page.

    #109943

    The Slider is Layerslider WP and it does support shortcodes and I can drop it into the main content without issue, I’m struggling to find an efficient way to insert it into the templates big slideshow area below the header area

    #109944

    That’s not easily possible because you’d need to heavily modify the slideshow generator class in wp-contentthemeschoicesincludeshelper-slideshow.php. Another solution would be to replace the slideshow call in header.php with your shortcode – so i.e. replace:

    if(!empty($avia_config['slide_output']))
    {
    echo "<!-- ####### SLIDESHOW CONTAINER ####### -->";
    echo "<div id='slideshow_big' class='slideshow_color container_wrap ".avia_is_dark_bg('slideshow_color', true)."'><span class='top_stripe_shadow'></span>";
    echo "<div class='container'>".$avia_config['slide_output']."</div></div>";
    }

    with.

    $sliderdata = do_shortcode('[myslider]');
    if(!empty($avia_config['slide_output']))
    {
    echo "<!-- ####### SLIDESHOW CONTAINER ####### -->";
    echo "<div id='slideshow_big' class='slideshow_color container_wrap ".avia_is_dark_bg('slideshow_color', true)."'><span class='top_stripe_shadow'></span>";
    echo "<div class='container'>".$avia_config['slide_output']."</div></div>";
    }
    else if(!empty($sliderdata ))
    {
    echo "<!-- ####### SLIDESHOW CONTAINER ####### -->";
    echo "<div id='slideshow_big' class='slideshow_color container_wrap ".avia_is_dark_bg('slideshow_color', true)."'><span class='top_stripe_shadow'></span>";
    echo "<div class='container'>".$sliderdata."</div></div>";
    }

    and instead of [myslider] insert your shortcode.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Struggling with Dynamic theme – Page split vs. Sidebar’ is closed to new replies.