-
Author
-
September 10, 2015 at 13:41 #76975wilfriedMarseilleParticipant
Hello
I saw than if i put single.php on my kleo child i can customise all my post.
And i saw the post format ( image, sons, video …. ) and post layout ( left sidebar, right sidebar, no sidebar … ).I would like put an imag and a link at the end of a part of amy article. So i know how to do that with single.php.
Bus is for all my post.
So i think that we can customise the image poste format. and after i put image format in my post editor.
But how can i say. If you use image format, you use this post customisation code.
I have to copy/paste content-image.php in my Kleo Child and modificate this file to customise my image format ?
Because i did it but is no working …If you love Ableton check my blog :
www.zikrea.comSeptember 10, 2015 at 19:12 #77083RaduModeratorHi,
If you want to add a simple thing at the bottom of your post use this function.
COPY CODEfunction CustomKleoAddContentAfterPost( $content ) { if( is_single() ) { $shortcode = '<a href="http://google.com"><img src="http://angierfellowship.dnsalias.com/wp-content/uploads/2014/03/img-600x390.gif"></a>'; $content .= '<h4>My Custom content</h4>'; $content .= $shortcode; } return $content; } add_filter('the_content', 'CustomKleoAddContentAfterPost');
If you want to make your custom post template just copy the original template from parent theme
example :
wp-content/themes/kleo/content-image.php
wp-content/themes/kleo-child/content-image.php
Note the Kleo Child needs to be active
Best Regards
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.