Site logo

Archived topic

Slider should take space from left sidebar and main content

3 replies · Started by nik9 on July 1, 2021

Viewing posts 1–4 of 4

Hello,

I have a question regards the space from the left sidebar and the main content.

With GP Elements I insert a slider with the hook generate_before_main_content
<?php echo do_shortcode('[smartslider3 slider="23"]'); ?>

Currently I also add a second slider in the left sidebar with the hook generate_before_left_sidebar_content
<?php echo do_shortcode('[smartslider3 slider="24"]'); ?>

Now, I want to remove the slider from the left sidebar and then the slider from the main contnet hook should take that space. But I guess that is not possible with the hooks which are available.

Here is the goal what I try to do: https://ibb.co/j30TDG2

Any idea how that can be done?

Cheers

Hi there,

Hooks are added within a Container - and HTML elements such as the slider cannot 'naturally' span across multiple containers without messy absolute positioning which would just break responsiveness.

So for it to space over the left sidebar it would have to span over both sidebars and the content using the generate_inside_container hook or generate_after_header

Hi Dave,

Thanks.

But we do not want to span this over both sidebars. So then it's not possible :(
Or do you have maybe a other idea how this can be done?

Cheers

It would require complete customization of the template and a custom CSS Grid to create that layout. Its not possible within the theme.

This archived topic is closed to new replies.