Page template on index/homepage

Posted in: Newspaper
Post count: 11

Hi guys.
I need your help or advise.
I need to use de index page, but here the problem.
Right now i use a page like a static page in my optios reading -‘homepage newsmag’, what i need to do is to use the index but with the ‘homepage newsmag’ page configuration.

Can you help me please.

Regards

Post count: 22421

Hello davidtiquet,

As i understand you need to use the “your latest posts” homepage which uses the index.php file but with a different layout, one resembling newsmag homepage. This requires some custom modifications which we cannot provide. But i can point you in the right direction:
You will need a bit of PHP knowledge to do this.
You can use a function: <?php echo do_shortcode(''); ?> in your index.php file below the like so: http://screencast.com/t/D092zLsbJtq. (You need to add it to that specific container or it will lose its styling.)
Inside the shortcode function you will place the visual composer shortcodes you see in classic mode: http://screencast.com/t/g0C1VpiMWAhttp://screencast.com/t/g0C1VpiMWA.
It should llok like this: <?php echo do_shortcode('[vc_row][vc_column][td_block_2][/vc_column][/vc_row][vc_row][vc_column][td_block_15][/vc_column][/vc_row]'); ?>.
This will bring the blocks from visual composer to your index page.

I hope this helps.
Thank you!

Post count: 11

Hi Bogdan.
It will help!

Gracias.

Post count: 11

Works great Bogdan!

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