Return to Support

Help with random text?

Home Forums Graphene WordPress theme Support Help with random text?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8753
    dbphoto1981
    Member

    Hi, have had this problem for ages and not found an answer.

    On my index pages for example this one: http://www.algarvebikeholidays.com/tours/ you will see the first link/page info has part of the text from the page it links to showing, how do I stop this showing please? is there a code or maximum number it shows from the page as it is different on each page?

    Thanks

    #42092
    dbphoto1981
    Member

    Hi, can anyone offer any help with this, really stuck and cant find any solutions in the search?

    Thanks

    #42093
    Luko
    Member

    I’m on mobile now so I don’t have abbility to see code, but, can you color that text in the color of background? Something like:

    #post-ID p {
    color:#FFFFFF;
    }

    ID is the id of post…

    Not ideal solution I know. I will have a look at it later on desktop PC.

    #42094
    dbphoto1981
    Member

    Thanks, unfortunatly this wont work as then it wont show when you go to the page, it is a very strange issue this and have been trying to sort it for ages, so any help would be much appreciated 🙂

    #42095
    Luko
    Member

    Ok. This is little funny because pages don’t use excerpt by default. In loop-children.php the excerpt is called but we don’t have the control of it like in posts. So, If I was you I will do next:

    Add this code in functions.php (in child – theme off course):

    <?php
    // add excerpts to pages
    function add_page_excerpt_meta_box() {
    add_meta_box( 'postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'page', 'normal', 'core' );
    }
    add_action( 'admin_menu', 'add_page_excerpt_meta_box' );
    ?>

    This will add excerpt meta box in page edit. If you don’t see it try to enable it in Screen Options.

    Now, the tricky part is that it will show first few lines again if the excerpt meta box is empty. Now it depends, if you want custom page excerpts this is Ok. If you want to remove it copy/paste loop-children.php in child-theme and remove the_excerpt call.

    If you need more help mail me to: luko.delponte@gmail.com

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.