Support » Plugin: Enhanced Category Pages » Difficulty getting content to display properly

  • Hi,
    At first I couldn’t get any content to display at all, then I found this post: https://wordpress.org/support/topic/plugin-not-making-changes/ and applied your answer there after which I am able to see content but not in the places expected on the page. Let me show you what I mean- here is the category page with a couple of posts and using EC I added a revolution slider to the top as well as some other content. The slider shows up but the post content is still affixed to the top of the page and thus overlapping the slider: http://i.imgur.com/2JQXac9.jpg And the rest of the test content I entered (an image and a couple lines f text) using EC appears at the bottom of the page after posts and just before the comments and footer: http://i.imgur.com/fveKJSj.jpg

    I tried moving the <?php echo category_description(); ?> to the top of the category.php file, and in that case what happens is the post information gets pushed down off the slider and the added content appears just under the slider, which is great, but the comments section then for some reason gets inserted above the posts, which is not great.

    Here is what my category.php file looks like without your added category_description line:

    <?php get_header(); ?>
    <?php echo category_description(); ?>
    
    <?php
    
    if(freya_globals(‘grid_blog’)){
    switch(freya_data(‘grid_blog’)){
    case 1:
    get_template_part(‘category_default’,’category’);
    break;
    case 2:
    get_template_part(‘category_grid’,’category’);
    break;
    }
    }
    else {
    get_template_part(‘category_default’,’category’);
    }
    
    ?>
    
    <?php get_footer(); ?>

    Can you advise how to fix this? Or maybe there’s simply a way to remove the comments section? Because that would do the trick. Thanks

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This topic was modified 3 years, 11 months ago by bdbrown.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Difficulty getting content to display properly’ is closed to new replies.