Thread Starter
Simon
(@simonlg)
I have found the function that puts the Continue Reading link in. The code is as follows:
‘// Excerpt Begin
//
if (!function_exists(‘kippis_excerpt_length’)) {
function kippis_excerpt_length($length)
{
return KIPPIS_EXCERPT_LENGTH;
}}
if (!function_exists(‘kippis_continue_reading_link’)) {
function kippis_continue_reading_link()
{
return ‘ <span class=”continue-reading”>‘ . __(‘Continue reading <span class=”meta-nav”>→</span>’,’kippis’) . ‘</span>’;
}}
if (!function_exists(‘kippis_auto_excerpt_more’)) {
function kippis_auto_excerpt_more($more)
{
return ‘ …’ . kippis_continue_reading_link();
}}
if (!function_exists(‘kippis_custom_excerpt_more’)) {
function kippis_custom_excerpt_more($output)
{
if (has_excerpt() && !is_attachment()) {
$output .= kippis_continue_reading_link();
}
return $output;
}}
add_filter(‘excerpt_length’ ,’kippis_excerpt_length’ );
add_filter(‘excerpt_more’ ,’kippis_auto_excerpt_more’ );
add_filter(‘get_the_excerpt’,’kippis_custom_excerpt_more’);
//
// Excerpt End’
Under theme settings you can set display content, not excerpt, for mobile device.
Do not edit any theme file.
Thread Starter
Simon
(@simonlg)
Hi Paul,
I am unable to find any display content setting. Do you mean in the Theme options?
I have looked in all of the Theme Options sections (Notes, General, Main areas, Menus, Sidebars, Text, Structure and Mobile devices) and I can’t find it.
I looked in the WordPress settings and the only thing that I could find that might be what you were talking about is on the Reading page which was “For each article in a feed, show”, but I already have that set to Full Text so I doubt that it is.
Can you point me in the right direction please.
Thanks
Simon
It should be at Theme Options > Mobile devices
@simonlg I could see now that the setting is not there, theme automatically detects for mobile and put the logic there in the template.
For this, you have to create a child theme and override content.php
in it.
http://codex.wordpress.org/Child_Themes
Look at Line#61 in content.php
, change the_excerpt()
to the_content()
http://themes.trac.wordpress.org/browser/kippis/1.15/content.php#L61
Thread Starter
Simon
(@simonlg)
Ok, thanks for the response.
I will give that a go tonight when I get home from work.
Simon
Thread Starter
Simon
(@simonlg)
That solution works perfectly.
Thanks for your help, it is greatly appreciated!
Simon