Support for Envato Buyers › Forums › OldCar › Two text colours within a fluid post
- This topic has 10 replies, 2 voices, and was last updated 9 years, 9 months ago by FocuxTheme Support.
-
AuthorPosts
-
-
March 5, 2015 at 1:01 am #7721jmg77Member
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 -
March 5, 2015 at 11:49 pm #7726FocuxTheme SupportKeymaster
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
-
March 9, 2015 at 5:04 pm #7747jmg77Member
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
-
March 10, 2015 at 12:00 am #7758FocuxTheme SupportKeymaster
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');
-
March 10, 2015 at 12:08 am #7761jmg77Member
Hi,
Where should I place this in the theme-functions.php?Thanks
-
March 10, 2015 at 12:16 am #7766FocuxTheme SupportKeymaster
You can put it in custom-functions.php
-
March 10, 2015 at 12:26 am #7770jmg77Member
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.
-
March 10, 2015 at 1:35 am #7773jmg77Member
Ok, I think i’ve sussed it and it seems to be working how I want it.
Thanks for your help -
March 10, 2015 at 3:34 pm #7779FocuxTheme SupportKeymaster
Are your issues all fixed? 🙂
-
March 11, 2015 at 1:15 am #7794jmg77Member
Yes I think they are, thanks for your patience with me!
-
March 11, 2015 at 5:19 pm #7803FocuxTheme SupportKeymaster
That’s great!
-
-
AuthorPosts
- You must be logged in to reply to this topic.