I managed to get the PageBuilder content into my custom theme. However none of the required divs are showing up. Hence setting columns dont work. All the content is displayed within tags.
Here’s the link: http://yummyfoodtrip.com/new-flavours/
Any suggestions?
This is my Page code:
<?php /** * Template Name: Flavoursnew * * @package Flavoursnew */ ?> <?php get_header('flavour'); ?> <div class="container flavour" id="mainexp"> <div class="leftcontent1 text-center"> <img src="<?php echo get_template_directory_uri(); ?>/images/leftArrow.png" width="80" height="50" alt=""> <h2>Sort Your<br> Flavours</h2> <img src="<?php echo get_template_directory_uri(); ?>/images/menuLine.png" height="20" width="160" style="" alt=""> <!--/code for category--> <div class="course"> <?php query_posts('category_name=Sort your flavours &order=ASC'); while (have_posts()) : the_post();?> <h4><a href="#"><?php the_field('title');?></a><br><span>(<?php the_field('description');?>)</span></h4> <img src="<?php echo get_template_directory_uri(); ?>/images/leftpanSep.png" width="120" alt=""/> <?php endwhile; ?> </div> </div><!--/leftcontent1--> <div class="price"> <?php $my_id = 675; $post_id_675 = get_post($my_id); $content = $post_id_675->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; ?> </div><!--/main dish items--> <?php get_footer(); ?>
Hi Ian
Sorry for the late reply here. My only thought here is that there’s another plugin filtering the content after Page Builder and removing things like div tags. Can you try disabling all non-SiteOrigin plugins and see if that fixes your issue? If it does, then you can start re-enabling your plugins one by one to see which plugin was causing the problems.
If that doesn’t work, then you can try temporarily switching to a default WordPress theme like Twenty Twelve to see if your theme is what’s filtering the content.
When I switch to a default WP theme, everything works fine:
Hi Ian
That means your theme is filtering Page Builder content and removing the divs. Unfortunately there's not much we can do about this from our side,
but you could contact your theme developer to fix this issue on their side.
They'll just need to change their filter so it doesn't remove Page Builder content.
Hi Greg,
I was able to fix the styling issue. However, the columns are still being displayed as rows. You could scroll down to the end of the page at
http://yummyfoodtrip.com/flavours/