Main not working or functioning like others
This topic contains 13 replies, has 3 voices, and was last updated by Paolo 7 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
August 16, 2017 at 6:33 am #391395
Hello –
For some reason my main page doesn’t seem to be updated like the rest of them. https://vistahemp.com/directory still had the WordPress Copyright and the map or pics wont load. The last thing I did was add the code snippet:
/** Copyright Change */
function dt_remove_default_footer() {
remove_action( ‘dt_footer_copyright’, ‘dt_footer_copyright_default’, 10 );
add_action( ‘dt_footer_copyright’, ‘custom_dt_footer_copyright_text’, 10 );
}
add_action(‘init’, ‘dt_remove_default_footer’);function custom_dt_footer_copyright_text(){
echo ‘VistaHemp | HempVista 2017’;
}*/….
to the file through cpanel at the end of functions.php All other pages have the updated front picture as well. And the “My Account” link does nothing, but if I go to the other pages I can login. Did I miss something?
Thank you in advance
August 16, 2017 at 6:38 am #391396This reply has been marked as private.August 16, 2017 at 6:40 am #391397This reply has been marked as private.August 16, 2017 at 9:32 am #391422Hi Scott,
Could you please remove the code from the functions.php and insert the code into the “Code Snippet” plugin instead https://wordpress.org/plugins/code-snippets/ . Also, please tell me what is the folder path for this Website.
Thanks!
August 16, 2017 at 2:53 pm #391467Hi Kor –
I removed the code completely from and the problem is still there.
When I log into my admin the main page shows fine. Its when I log out and view it from no log in at all, or public, that it looks bad and not functioning properly.
Sorry I dont understand the question “Also, please tell me what is the folder path for this Website.” Could you please explain more? I removed the code from:
vistahemp.com/directory/wp-content/themes/supreme-directory/functions.php
This is an addon domain to another domain of mine http://domesticated.us as I only have one hosting account and this is my second site.
August 16, 2017 at 3:04 pm #391473Hi Scott,
Sorry to hear about that. I’ve just taken another look at your Website and it seems to work when I cleared the GD booster cache. Could you please check?
Thanks!
August 16, 2017 at 3:08 pm #391474It looks perfect when I’m logged in. Once I log out, it changes. The hemp leaf on the main page disappears and the login doesnt work, listings dont load, etc.. you’ll also notice the listings on the map where you check the boxes, they have arrows pointing down next to them.
August 16, 2017 at 3:15 pm #391475I turned off the booster and it fixed it. Does this mean I cannot use the booster?
August 16, 2017 at 3:25 pm #391478Also I added the code via a snippet plug in and I get this error: The snippet has been deactivated due to an error on line 8:
syntax error, unexpected ‘2017’ (T_LNUMBER), expecting ‘,’ or ‘;’
Heres the code exactly:
function dt_remove_default_footer() {
remove_action( ‘dt_footer_copyright’, ‘dt_footer_copyright_default’, 10 );
add_action( ‘dt_footer_copyright’, ‘custom_dt_footer_copyright_text’, 10 );
}
add_action(‘init’, ‘dt_remove_default_footer’);function custom_dt_footer_copyright_text(){
echo ‘VistaHemp | HempVista 2017’;
}Can you help? Many thanks
August 16, 2017 at 3:34 pm #391479I took out the date and the error message disappeared from the snippet admin area. The site does not reflect the changes however..
August 16, 2017 at 4:12 pm #391488I tried two different snippet plug-ins with no success. One listed it was compatible (Shortcoder) and one wasn’t (Codesnippets), neither one worked on changing the copyright. Now when I add the change again in the functions.php in cPanel, it doesn’t change. It’s pretty confusing. Am I missing something?
ps..i dont mind sharing the space with you guys, I just want my name there too.
August 16, 2017 at 6:28 pm #391507Hi Scott,
PHP code doesn’t accept curly quotes. You must be using the straight quote.
So this :
function dt_remove_default_footer() { remove_action( ‘dt_footer_copyright’, ‘dt_footer_copyright_default’, 10 ); add_action( ‘dt_footer_copyright’, ‘custom_dt_footer_copyright_text’, 10 ); } add_action(‘init’, ‘dt_remove_default_footer’); function custom_dt_footer_copyright_text(){ echo ‘VistaHemp | HempVista 2017’; }
Must change to:
function dt_remove_default_footer() { remove_action( 'dt_footer_copyright', 'dt_footer_copyright_default', 10 ); add_action( 'dt_footer_copyright', 'custom_dt_footer_copyright_text', 10 ); } add_action('init', 'dt_remove_default_footer'); function custom_dt_footer_copyright_text(){ echo 'VistaHemp | HempVista 2017'; }
I’ve corrected it for you. Let us know if there is anything else that we need to check.
Thanks
August 17, 2017 at 5:48 pm #391716That’s very good to know, Thank you Paolo! Thanks Kor!
August 17, 2017 at 5:48 pm #391717You are welcome 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket