-
AuthorPosts
-
March 5, 2014 at 5:56 pm #232826
Hello,
2 weeks ago i asked to have a blog-post with full content with read more
https://kriesi.at/support/topic/full-content-with-read-more/is it possible to have it for the widget latest news (in right sidebar)
> http://epsu-cj.eu/Thanks again for this great support !
March 8, 2014 at 11:34 am #234139Hi ceubri!
Open up wp-content/themes/enfold/framework/php/class-framework-widgets.php and replace:
the_excerpt(); echo "</div>";
with
get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow"> →</span>'); echo "</div>";
Regards,
PeterMarch 10, 2014 at 11:21 am #234605Sorry but that’s not working…
I replace the code in 2 places.March 10, 2014 at 11:25 am #234609Is it possible to manage this with the enfold-child ?
for the posts in blog-posts i add this code in enfold-child :add_filter( 'post-format-standard', 'avia_category_content_filter', 15, 1); function avia_category_content_filter($current_post) { global $avia_config; global $more; $more_bak = $more; if(!is_single() && empty($current_post['text_before'])) { $more = 0; $current_post['content'] = get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow"> →</span>'); $more = $more_bak; } return $current_post; }
March 11, 2014 at 10:47 am #235361Hi!
Yes, you can try to overwrite the entire widget code with your child theme. Insert this code: http://pastebin.com/raw.php?i=QfxGGn3y into the child theme functions.php file (at the very bottom).
Cheers!
PeterMarch 11, 2014 at 11:57 am #235407I did it,
purge cache,
test in 3 differents OS ( chrome, Firefox, IE)
but nothing happend…
SorryMarch 11, 2014 at 4:53 pm #235635Hi!
Please edit Dude’s code, look for this line:
$more = 0; get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow"> →</span>'); $more = $more_bak;
Replace it with:
$more = 0; the_content(); echo "<a href='".get_permalink()."'>".__('Read more','avia_framework')."</a>"; $more = $more_bak;
Cheers!
IsmaelMarch 11, 2014 at 5:11 pm #235669great it works !
Now i have 2 “read more” (“(suite…)” and “Lire la suite”)
is it possible to anly have one ?
(juste the same than in the posts “Lire la suite → “)
Thanks !March 11, 2014 at 6:35 pm #235739Hey!
How did you get the second read more link?
Please add this on Quick CSS to remove the second link:
.widget .more-link { display: none; }
Replace the code above with this:
$more = 0; the_content(); echo "<a class='widget-more-link' href='".get_permalink()."'>".__('Read more','avia_framework')."<span class='more-link-arrow'> →</span></a>"; $more = $more_bak;
You can adjust the style of the link using the “.widget-more-link” selector.
Cheers!
IsmaelMarch 12, 2014 at 10:45 am #236221THANKS !!
I don’t know How did you get the second read more link,
maybe it’a automatic with a number of words ?Thx for your work, it’s very helpfull !
One last question, i use WPML plugin,
i have colors on links : blue color for FR and pink for EN language.
But this “read more link” stay grey, how to fix that ?Bye
- This reply was modified 10 years, 8 months ago by ceubri.
March 13, 2014 at 9:06 am #236758Hi!
Try to insert this css code into the quick css field to change the color
#top #wrap_all a.more-link{ color: #eb23eb; }
You can change the color value if necessary. You can also set a different color for each language. Just use the language switcher on the theme option page and insert the code into the quick css field – each language will generate a separate dynamic stylesheet based on the quick css content.
Cheers!
PeterMarch 13, 2014 at 10:42 am #236800You’re Great !!!
-
AuthorPosts
- The topic ‘widget latest news with full content with read more’ is closed to new replies.