• Ian

    (@iancrasta)


    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 <p> tags.

    Here’s the link: https://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(); ?>

    https://www.ads-software.com/plugins/siteorigin-panels/

  • The topic ‘divs missing’ is closed to new replies.