-
AuthorPosts
-
September 15, 2017 at 12:49 pm #852516
Hey,
I have added this link code to the excerpt here:
http://www.newyorkhotellbokning.se/thelife-hotel/<span style=”text-decoration: underline; font-size: 14pt;”><span style=”font-family: abril; color: #ff0000; text-decoration: underline;”>➤ Läs mer…</span></span>
but as you can see in the Masonry element here: http://www.newyorkhotellbokning.se/
the font and color does not showWhat shall I do?
Thanks
CharlotteSeptember 17, 2017 at 4:56 am #852992Hey Charlotte,
WordPress strips html tags from the excerpt by default, maybe this will help you out in changing that: https://premium.wpmudev.org/forums/topic/can-i-have-html-tags-in-excerpts
Best regards,
RikardSeptember 17, 2017 at 1:30 pm #853062Thanks Rikard.
I added the code to the functions.php file but I can’t see any difference…
September 20, 2017 at 4:42 am #854122Hi,
Thank you for the update. By default, the content are wrapped in a strip_tag function. Please add this filter in the functions.php file to use the original excerpt without stripping the tags.
add_filter( 'avf_masonry_loop_prepare', 'avf_masonry_loop_prepare_mod_cat', 10, 2 ); function avf_masonry_loop_prepare_mod_cat( $key, $entries ) { foreach ($entries->posts as $arr => $entry) { $key['description'] = $entry->post_excerpt; } return $key; }
Best regards,
IsmaelSeptember 20, 2017 at 7:30 am #854215Thanks but that does not work either
September 20, 2017 at 8:02 am #854241Hi,
Please try to replace “description” with “content”. Did you apply the excerpt of the posts manually?
Best regards,
IsmaelSeptember 20, 2017 at 8:37 am #854247Hi Ismael,
Thanks for your reply.
I tried to replace to content but I get the same error.Yes, I have apply it manually.
Charlotte
September 21, 2017 at 11:53 am #854758Hi,
There are no opening / closing php tags. Please add the opening and closing php tags.
<?php // code here ?>
Best regards,
IsmaelSeptember 21, 2017 at 12:51 pm #854798Hi Ismael,
Thanks but there is something wrong with the functions.php file. When I added your code I got this error and when I delete all code in the functions.php I get this now and can’t access the site
Parse error: syntax error, unexpected ‘<‘ in /home/d8737/newyorkhotellbokning.se/wp-content/themes/enfold-child/functions.php on line 16
Can you login ti the servers and see what happen, thanks
CharlotteSeptember 22, 2017 at 8:03 am #855224Hi,
Please revert the functions.php file back to default. Do you have a site backup?
UPDATE: I can’t connect to the file server.
Connecting to 62.20.1.160:21…
Status: Connection established, waiting for welcome message…
Response: 220 FTP service
Command: AUTH TLS
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to serverBest regards,
IsmaelSeptember 22, 2017 at 9:45 am #855280Hi Ismael,
Thanks for your reply.
No I don’t have a back up … so what shall I do then?What default cod can I add?
/Charlotte
September 23, 2017 at 3:17 am #855653Hi,
Get a fresh copy of the child theme functions.php file then override the current one.
Best regards,
IsmaelSeptember 23, 2017 at 9:07 am #855724Ok, thanks. I have done that now so I am good.
September 23, 2017 at 7:13 pm #855868Hi charlotteraboff,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.