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
  • Author
    Posts
  • #391395

    Scott Toepfer
    Full Member
    Post count: 173

    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

    #391396

    Scott Toepfer
    Full Member
    Post count: 173
    This reply has been marked as private.
    #391397

    Scott Toepfer
    Full Member
    Post count: 173
    This reply has been marked as private.
    #391422

    Kor
    Moderator
    Post count: 16516

    Hi 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!

    #391467

    Scott Toepfer
    Full Member
    Post count: 173

    Hi 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.

    #391473

    Kor
    Moderator
    Post count: 16516

    Hi 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!

    #391474

    Scott Toepfer
    Full Member
    Post count: 173

    It 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.

    #391475

    Scott Toepfer
    Full Member
    Post count: 173

    I turned off the booster and it fixed it. Does this mean I cannot use the booster?

    #391478

    Scott Toepfer
    Full Member
    Post count: 173

    Also 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

    #391479

    Scott Toepfer
    Full Member
    Post count: 173

    I took out the date and the error message disappeared from the snippet admin area. The site does not reflect the changes however..

    #391488

    Scott Toepfer
    Full Member
    Post count: 173

    I 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.

    #391507

    Paolo
    Site Admin
    Post count: 31211

    Hi 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

    #391716

    Scott Toepfer
    Full Member
    Post count: 173

    That’s very good to know, Thank you Paolo! Thanks Kor!

    #391717

    Paolo
    Site Admin
    Post count: 31211

    You are welcome 🙂

Viewing 14 posts - 1 through 14 (of 14 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount