Support » Plugin: CC Child Pages » Displaying images before title

  • Hi,

    is it possible to display the image BEFORE the title (when thumbs are set to true, displays the title first and the thumbs after the title). I would like to avoid messing with the html of the plugin files.
    Thanks a lot for this great plugin.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Hi.

    You can achieve this by adding the following code to your theme’s functions.php file:

    add_filter('ccchildpages_inner_template', 'ccchildpages_reorder_items');
    
    function ccchildpages_reorder_items()
    {
        return '<div class="ccchildpage {{page_class}}">{{thumbnail}}<h3{{title_class}}>{{title}}</h3>{{meta}}{{excerpt}}{{more}}</div>';
    }

    … or you could create a very simple plugin to add the code if you are comfortable doing so.

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying images before title’ is closed to new replies.