• Resolved Simon

    (@simonlg)


    Hi,

    Our website – http://www.selfnurturejournal.com – does not appear to be working correctly on Mobile devices.

    If you view the buy online page http://www.selfnurturejournal.com/buy/ via a computer you will see that there is a Paypal link for purchasing the journal. However, when I view the same page on my mobile phone (android) I get a link appearing halfway through the text to “Continue reading”. When I click this link, nothing happens. As a result, any user accessing our site via a mobile device (I don’t have an iPhone so I don’t know if it is also an issue) cannot buy our product.

    Can anyone suggest a way to stop the “Continue reading” link from appearing, or to get it to actually display more info when it is clicked on?

    Thanks

    Simon

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘"Continue reading" link not working on mobile device’ is closed to new replies.