• Resolved johnegg

    (@johnegg)


    Hi guys, fantastic plugin! ?? Just a quick question, how do I move the title of the child page to below the thumbnail image instead of over it?

    Thanks
    John

Viewing 4 replies - 1 through 4 (of 4 total)
  • Same question !
    Some titles are longer than others, so thumbnails under them are not aligned…

    I wish there was a clean way to change the HTML but this plugin is already so useful !

    so I used this CSS :

    .ccchildpage {
    	position: relative; /* so we can position elements in absolute inside */
    	padding-top: 150px; /* some room for the image ... to be adjusted */
    }
    .ccchildpage .ccpage_linked_thumb {
    	position:absolute;
    	top: 0;
    	left:0;
    	right: 0;
    	max-height: 150px; /* same size as previously */
    	overflow: hidden;
    }
    .ccchildpage .ccpage_linked_thumb img {
    	margin-top:0;
    }
    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    You can achieve this safely using the ccchildpages_inner_template filter. That way, your work won’t be undone when you upgrade the plugin.

    Add the following to your theme’s functions.php file, or create a simple plugin …

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

    (@johnegg)

    Super, thanks!

    Helps me, too.
    Thanks for this great service!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Move title below thumbnail’ is closed to new replies.