-
AuthorPosts
-
September 18, 2017 at 12:59 pm #853373
Hi,
http://www.newyorkhotellbokning.se
I added this code to the functions.php
function new_excerpt_more( $more ) {
return ‘ ‘ . __(‘Read More’, ‘your-text-domain’) . ‘‘;
}
add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );and then it came out like this
What is wrong with the code?
I got it from this page: https://codex.wordpress.org/ExcerptThanks
CharlotteSeptember 19, 2017 at 6:22 am #853701Hey Charlotte,
It looks like you removed a lot of the return text, try this instead:
function new_excerpt_more( $more ) { return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">' . __('Read More', 'your-text-domain') . '</a>'; } add_filter( 'excerpt_more', 'new_excerpt_more' );
Best regards,
RikardSeptember 19, 2017 at 11:06 am #853789Thanks Rikard but it looks the same
I have delete the code, maybe you can login and try, thanks.
CharlotteSeptember 20, 2017 at 2:43 pm #854373Hi Charlotte!
Can you please post FTP logins here privately as well? I was adding the code to functions.php file but noticed one more issue right after i saved the file. Sorry about that!
Best regards,
YigitSeptember 20, 2017 at 2:56 pm #854382Hi Yigit.
Here comes the ftp login
Thanks
CharlotteSeptember 20, 2017 at 3:17 pm #854389Hey!
Folder shows up empty when i access via FTP. Can you please check accounts path and permissions once again?
Cheers!
YigitSeptember 20, 2017 at 3:20 pm #854391Ah… sorry. Now it is working!
September 20, 2017 at 3:36 pm #854399Hey
I corrected the issue and added the code to functions.php file. Please review your website :)
Regards,
YigitSeptember 20, 2017 at 3:39 pm #854401Thanks Yigit :)
But the link for Read more is still not visible.. is because I have added the excerpt manually?
September 22, 2017 at 7:14 am #855183Hi,
I’m sorry but I can’t access the site because of the following error.
Parse error: syntax error, unexpected ‘<' in /home/d8737/newyorkhotellbokning.se/wp-content/themes/enfold-child/functions.php on line 16
Please revert the functions.php file back to default. Please don’t forget to wrap the php codes inside the opening and closing php tags. This is the same issue with your other thread.
<?php // codes here ?>
Best regards,
IsmaelSeptember 22, 2017 at 9:47 am #855281Hi Ismael,
can you login to the server then?
ThanksSeptember 23, 2017 at 3:17 am #855654Hi,
I can’t access the file server. Is it limited to a certain IP address or country?
// https://kriesi.at/support/topic/excerpt-4/
Best regards,
IsmaelOctober 5, 2017 at 3:10 pm #860600Hello,
I have tried fixing an error on the site following the instructions found on this support forum. The error said:
“Warning: mysql_real_escape_string(): Access denied for user ‘swaneven’@’localhost’ (using password: NO) in /home/swaneven/public_html/wp-content/themes/replete/framework/php/class-framework-widgets.php on line 1322Warning: mysql_real_escape_string(): A link to the server could not be established in /home/swaneven/public_html/wp-content/themes/replete/framework/php/class-framework-widgets.php on line 1322”
It didn’t work and I’ve encountered a bigger issue which doesn’t let me access the site anymore:
“Parse error: syntax error, unexpected ‘\’ (T_NS_SEPARATOR), expecting ‘)’ in /home/terenuri/public_html/wp-content/themes/enfold/functions.php on line 23”Now the website is not available at all. Could you please help me?
Thanks
AdrianOctober 6, 2017 at 7:33 am #860881Hi Adrian,
Could you try updating the theme to the latest version (4.1.2) to see if that helps please? http://kriesi.at/documentation/enfold/updating-your-theme-files/
Best regards,
RikardOctober 7, 2017 at 10:22 am #861339Hello Rikard,
Thank you for your reply.
Unfortunately I cannot access the platform anymore and can’t update or edit anything because I cannot enter it…
Thanks again,
A.October 8, 2017 at 10:46 am #861514Hi,
Ok, thanks for the feedback. The only option for you then is to overwrite the theme via FTP, you will find instructions on how to do that in the link I sent. Under the Update Manually via FTP header.
Best regards,
RikardOctober 8, 2017 at 7:40 pm #861645Hi,
this is already solved when I reinstalled the theme.
thanks Charlotte
October 9, 2017 at 10:40 am #861816 -
AuthorPosts
- The topic ‘Error in functions.ph’ is closed to new replies.