• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

LanceHillier

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 10 posts - 21 through 30 (of 30 total)
← 1 2
  • Author
    Posts
  • April 26, 2018 at 6:31 pm in reply to: Customise content (featured posts) #219330
    LanceHillier
    Participant

    Hi Brad,

    I found your code here Force a Read More Link on all Post Excerpts in WordPress

    Which is the best yet but it does put the 'read more' like so:

    Recently I’ve been thinking a lot about what holds us back and the things that prevent us from reaching our goals or taking the risks to move our lives forward. I have been guilty of holding myself back many times, so here are my thoughts and what I’ve lea

    read more

    Is there a way to place the 'read more' link onto the end of the excerpt??

    April 26, 2018 at 5:57 pm in reply to: Customise content (featured posts) #219329
    LanceHillier
    Participant

    Ok, this code works...

    function all_excerpts_get_more_link($post_excerpt) {
    global $post;

    return $post_excerpt . ' <p>' . __('read more') . '</p>';
    }

    add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');

    but places the 'read more' on a new line like so:

    Recently I’ve been thinking a lot about what holds us back and the things that prevent us from reaching our goals or taking the risks to move our lives forward. I have been guilty of holding myself back many times, so here are my thoughts and what I’ve lea

    read more

    I would like this on the end of excerpt like normal, I'm getting closer!

    April 26, 2018 at 5:48 pm in reply to: Customise content (featured posts) #219328
    LanceHillier
    Participant

    I have this code that works...

    // Changes the behaviour of manual excerpts to include read more link
    function all_excerpts_get_more_link($post_excerpt) {
    return $post_excerpt . ' ... ID) . '">Read more';
    }
    add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');

    But throws this error...

    Notice: Undefined variable: post in /Volumes/Design/Website_Design_Jobs/CURRENT JOBS/LOCAL SERVER/writeabetterlife2/wp-content/themes/magazine-pro/functions.php on line 207

    Notice: Trying to get property 'ID' of non-object in /Volumes/Design/Website_Design_Jobs/CURRENT JOBS/LOCAL SERVER/writeabetterlife2/wp-content/themes/magazine-pro/functions.php on line 207
    Recently I’ve been thinking a lot about what holds us back and the things that prevent us from reaching our goals or taking the risks to move our lives forward. I have been guilty of holding myself back many times, so here are my thoughts and what I’ve lea … Read more

    April 26, 2018 at 5:35 pm in reply to: Customise content (featured posts) #219326
    LanceHillier
    Participant

    Just to add to this, I am adding my own excerpt from the editor screen

    April 26, 2018 at 5:21 pm in reply to: Customise content (featured posts) #219325
    LanceHillier
    Participant

    Thanks Brad,

    As soon as I change the featured post widget to show excerpt it removes the 'read more..', by the looks of this code its supposed to add this link back in but it doesn't seem to want to do that for me.

    I have just tried your code, and the one I found on wordpress.org.

    I also the genesis theme settings to display 'entry excerpts' as per your post with no luck.

    not sure, will keep playing!!

    April 26, 2018 at 3:55 pm in reply to: Customise content (featured posts) #219317
    LanceHillier
    Participant

    Yep sorry should have said the featured content widget, yes the content limit, and the excerpts. I'm trying to remove the first couple of words, it's the Authors name which I put in the editor. I can do it by using the excerpt option but then the read more button is removed( I would like to keep this the way it is) and the content/content limit just grabs everything from the start.

    August 6, 2017 at 5:45 pm in reply to: Shortcode inside Function #210056
    LanceHillier
    Participant

    Brad, Thank you!!!

    I've got it working thanks to your suggestions above, thanks for taking the time to respond, I've been on that one for a few weeks:-)

    Cheers,
    Lance.

    August 6, 2017 at 2:58 am in reply to: Shortcode inside Function #210036
    LanceHillier
    Participant

    Thanks Brad,

    The do_shortcode won't work inside the function, and because the contact form is inside the column class I can't break the html to add the php...

    Cant seem to get it to work that way anyway, I'm probably not doing it the way its supposed to be done and might have to come at it from another angle.

    I'm not sure what the contact forms function call is, but I'll look into that now.

    Thanks for the reply mate!
    Lance.

    May 31, 2017 at 10:05 pm in reply to: Widget and Front Page design #207247
    LanceHillier
    Participant

    Victor,

    You seem to be across everything, thanks for your time mate, your answer has I think helped me find the right path to a solution, and opened up another tool for my box. I have found this code using the above tut which I think has something to do with it!!!

    .home-middle .widget,
    .home-top .widget {
    float: left;
    padding: 0 2.8%;
    width: 33.33333333333%;
    }

    .home-middle .widget:nth-of-type(3n+1),
    .home-top .widget:nth-of-type(3n+1) {
    clear: left;
    }

    Cheers,
    Lance.

    April 17, 2016 at 10:42 pm in reply to: Google Indexing newbie Q's #183803
    LanceHillier
    Participant

    Hi Christoph,

    Thanks for your reply and Link mate, I have just submitted one on your advice, I also found the 'fetch as google' in the webmaster tools and submitted some url's that way, I now notice if I go 'site:handoffaith.com' the site does come up, which is promising, but nothing yet when I search straight from google which i'm hoping is just a time thing. But yeah, getting on top of the google pile is a whole other ball game I'm sure.

    So much to learn!!

    Thanks again,
    Lance.

  • Author
    Posts
Viewing 10 posts - 21 through 30 (of 30 total)
← 1 2
« Previous Page

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble