Support » Plugin: Enhanced Category Pages » Display thumbnail and category description on same line of category archive page

  • Resolved jonnyb

    (@jonnybjonnyb)


    Hi. First — this plugin is great. Second — apologies if this has been covered elsewhere. I did look …

    On the category archive page, I’d like the category description to appear alongside the category thumbnail rather than beneath it. Suggestions on easiest way to accomplish this?

    I tried creating a content-ecp.php but was unable to get changes to stick — and my coding skills are mediocre, anyway.

    I’m using the plugin with Nirvana 1.2.4. Site isn’t yet public so I can’t provide a link. Does forum allow for attachments?

    Thx!

    https://wordpress.org/plugins/enhanced-category-pages/

Viewing 1 replies (of 1 total)
  • Plugin Contributor danaila_iulian

    (@danaila_iulian)

    Hi!

    Here is a simple content-ecp.php file example:

    <?php
            global $enhanced_category;
            // if not previously set up, then let setup_ec_data get the current query term/category
            if (empty($categoryId)) {
                    $categoryId = null;
            }
    
            // get enhanced category post and set it up as global current post
            $enhanced_category->setup_ec_data($categoryId);
    ?>
    
    <!-- enchanced category page (ECP) content -->
    
            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
                            <?php the_post_thumbnail(); ?>
                            <?php the_content(); ?>
            </article><!-- #post-## -->

    All you need to do know is edit the CSS code to make the thumbnail display: inline to make them show on the same line.

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Display thumbnail and category description on same line of category archive page’ is closed to new replies.