Support for Envato Buyers Forums OldCar Two text colours within a fluid post

Viewing 10 reply threads
  • Author
    Posts
    • #7721
      jmg77
      Member

      Hi,
      I would like to be able to have the first line of or at least some words in my fluid posts to be a different colour.

      If you could have a look at http://ryyabread.com you will see I have event information at the start of the description. I’d like this to be a different colour and if possible on its own line.

      When I change the colour and put a return in it doesn’t accept it. It does register it when you click on the post to expand it, only then is it a different colour.

      Is there a way around this?

      Thanks
      John

    • #7726

      Hi

      You can add the excerpt text separately like below

      <span style="Your color code">Text here</span>, the other text.........
      

      When you edit the post, click “screen options” button(on the top right of the screen), select “excerpt”, then you will see the excerpt text area below the editor.

      Thanks

    • #7747
      jmg77
      Member

      Hi, that worked thanks. Only problem now is it doesn’t link to the page with the full post.

      I’ve trued to follow the WordPress advice and added the following to the theme-functions.php

      function new_excerpt_more( $more ) {
      return ‘ ‘ . __(‘Read More’, ‘your-text-domain’) . ‘‘;
      }
      add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

      It didn’t work, but i’m not sure if I put it in the correct place???

      Thanks

    • #7758

      Please make sure you use English quotation marks in your codes.

      function new_excerpt_more( $more ) {
      return __('Read More', 'your-text-domain');
      }
      add_filter( 'excerpt_more', 'new_excerpt_more');
    • #7761
      jmg77
      Member

      Hi,
      Where should I place this in the theme-functions.php?

      Thanks

    • #7766

      You can put it in custom-functions.php

    • #7770
      jmg77
      Member

      Strange, I haven’t changed the php file yet but it is now linking the post to the full page anyway, why is that?

      Also, what it happening is instead of just showing part of the post copy it is showing all of it, can it be so it just shown part of it?

      if you look at the “Salone di Limone” and “Espressini – Weekly Workshops” you’ll see what I mean.

      I’d just like to be able to have the first line or first few words to be a certain colour, the rest of the post copy to be the theme styling.

      sorry if this is confusing, it’s hard to explain.

    • #7773
      jmg77
      Member

      Ok, I think i’ve sussed it and it seems to be working how I want it.
      Thanks for your help

    • #7779

      Are your issues all fixed? 🙂

    • #7794
      jmg77
      Member

      Yes I think they are, thanks for your patience with me!

    • #7803

      That’s great!

Viewing 10 reply threads
  • You must be logged in to reply to this topic.