Magazin: two column block 2 layout

Posted in: Newsmag
Post count: 5

Hi, I can’t see a forum for the Magazin theme so I hope this is the right spot for this question.

I’m trying to recreate the layout of the “popular posts” block at the top of this page:
http://demo.tagdiv.com/magazinly/homepage-3/

I think it’s a “block 2” VC element, but when I use it I get three columns instead of two:
http://specfinish.campbellmarsh.co.uk/

(the td_block2 block on the demo page uses two span6 columns, but the one on my page uses three span4 columns)

How can I switch it to two columns?

Bonus question: how do I enable the little “Home” icon on the left side of the nav menu which is visible on the demo?

Many thanks 🙂

Post count: 5

Did I ask in the wrong forum?

Post count: 6535

Hi

For indicated page from our demo we use block 2 on two colons: http://screencast.com/t/FKh1gyDo and to achieve that make sure you use a 2/3+1/3 layout like here: http://screencast.com/t/iBLMivkc9http://screencast.com/t/WZux7bxfk

The “home” icon it’s available with the top menu: http://screencast.com/t/nr27xPmChttp://screencast.com/t/MLDuKQ78eEbhttp://screencast.com/t/dMmKP4Og

Hope this help!
Thanks!

Post count: 5

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.

Post count: 6535

Hi

You can set the raw layout from Visual Composer editor like here: http://screencast.com/t/wrYYcpYbGHC

Thanks!

Post count: 5

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?

Post count: 5

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.

Post count: 6535

Hi

You can add a sidebar using a widgetized sidebar block from Visual Composer like here: http://screencast.com/t/WcefJ9mKFmlhttp://screencast.com/t/um6mD1YunGq The result will be like here: http://screencast.com/t/bboo4YVEC Try to restore the code from its original version and apply this solution.

Let me know how it goes!
Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newsmag’ is closed to new topics and replies.