Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
tissandier
tagDiv Member

Ok I fixed it by changing line 98 of /includes/pagebuilder/td_block_layout.php:


switch ($td_column_count) {
case '1/1':
return 2;
break;

(changed from 3 to 2)

The problem is that the get_column_number function doesn’t take into account whether or not the page has a sidebar, so the layouts don’t work properly on pages with sidebars.

tissandier
tagDiv Member

Thanks Andrei but a 2/3 + 1/3 layout isn’t what I need – it leaves a big gap on the page:
https://www.dropbox.com/s/houxdmwolv1a1zi/Screenshot%202015-09-20%2013.07.07.png?dl=0

I’m just trying to recreate this layout but with the sidebar being an actual WP sidebar instead of part of the page layout:
http://demo.tagdiv.com/magazinly/homepage-3/

It must be possible?

tissandier
tagDiv Member

Thanks Andrei.

So a block 2 will always have three columns if it’s full width? Even if there’s also a sidebar?

This is my layout, a block 2 with a sidebar:
https://www.dropbox.com/s/7cx3lq1m8570wz8/Screenshot%202015-09-17%2012.35.29.png?dl=0

I think in this case the block 2 should only have two columns, not three.

Can you tell me which template file I need to edit to get this working?

Many thanks.

tissandier
tagDiv Member

Did I ask in the wrong forum?

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