• Resolved joeco

    (@joeco)


    Hello,

    I’m using RRSSB with the CTA: Share: It works fine on single posts and pages. The excerpt options are not selected. The archive pages still shows the CTA (without the buttons). Please look at the page linked here.

    How can I remove the CTA from the excerpts?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    The WPSSO RRSSB plugin adds the CTA text above the share buttons. Looking at the HTML source of your webpage, it looks like the full content was used (by your theme or a plugin) to create those excerpts, and the HTML of the content simply stripped-out. The results of doing it this way, instead of using the WordPress https://developer.wordpress.org/reference/functions/the_excerpt/ function (for example), can have unpredictable results. It would be best if that excerpt was constructed using standard WordPress functions to have more a predictable output (based on the WordPress created excerpt instead of the full content). Assuming the theme or plugin doing this first checks for an existing excerpt text before creating one, you could try providing an excerpt text when editing that post.

    js.

    Thread Starter joeco

    (@joeco)

    Hi JS,

    Thanks for the reply. I think that is exactly what’s going on.

    I need a function that will strip the CTA from the post list HTML content using the CSS class .bio-post-preview–content-body Any ideas?

    Cheers!

    Plugin Author JS Morisset

    (@jsmoriss)

    Since all HTML, including any div containers you could use to hide that text, are stripped from the full content, no, there is no way. I would suggest you contact the theme/plugin author responsible for creating that truncated content and ask them to use proper WordPress functions to display a proper excerpt.

    js.

    Thread Starter joeco

    (@joeco)

    Thanks JS. I will do exactly what you suggest.

    I appreciate your advice and attention!

    • This reply was modified 1 year ago by joeco. Reason: spelling error
    Thread Starter joeco

    (@joeco)

    following up — I removed “Share: ” from the CTA field and then added a little CSS to put it back in and move it to place:

    .rrssb-buttons:before {
        content: 'Share:';
        position: relative;
        left: -50px;
        top: 30px;
    }

    Thanks again!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘remove CTA from excerpt’ is closed to new replies.