Home Forums Pro Themes Restaurantz Pro Disable Plugin Nag Messages

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #53595
    Tenika
    Participant

    Hello,
    I purchased the Restaurantz Pro theme and I’m loving how great it looks! I knew when I purchased that I didn’t need or want all of the recommended plugins for the theme, like OpenTable, but I didn’t anticipate that I wouldn’t be able to just not install them without having a permanent message at the top of my admin pages telling me to install them. I don’t want unnecessary plugins that I don’t intend to use. How can I disable the nag messages telling me to install plugins I don’t need or want?

    #53607
    wensolutions
    Keymaster

    Hello @tekiebelu,

    First of all thank you very much for buying the pro version and for all the appreciation .

    Now to disable the nag messages recommending the plugin you have to activate the child theme .

    You can also create the child theme using the plugin given below :

    https://wordpress.org/plugins/wp-child-theme-generator/

    After activating the child theme in your child themes functions.php paste below given code :

    function restaurantz_pro_child_remove_recommended_plugins(){
    
    	remove_action( 'tgmpa_register', 'restaurantz_activate_recommended_plugins' );
    }
    add_action('init', 'restaurantz_pro_child_remove_recommended_plugins');

    Hope this helps .

    Best Regards!!

    #53750
    Tenika
    Participant

    Hello and thank you for the quick response! I’m afraid adding the code to my child theme’s functions.php file didn’t work. I double-checked the syntax and spacing and tried entering it both exactly as I copied it from your response and with removing the extra line space between the first and second line of code, but neither worked. This is exactly how I have it entered currently:

    (empty space here separating it from code above)
    function restaurantz_pro_child_remove_recommended_plugins(){
    remove_action( ‘tgmpa_register’, ‘restaurantz_activate_recommended_plugins’ );
    }
    add_action(‘init’, ‘restaurantz_pro_child_remove_recommended_plugins’);
    // END ENQUEUE PARENT ACTION

    Am I entering something wrong?

    I also have a niggling issue with my shop page header title. All of my other pages, the header title matches the name of the page in the menu, but on my shop page (which is titled Place an Order), the header title sometimes shows Archive: Dishes. I then have to go into that page as if to edit it, click update, and it displays correctly. I have to do that repeatedly but I don’t know why. I’m sure it’s something simple, but no idea what. Any thoughts?

    My website is https://lukescooking.com

    #53775
    wensolutions
    Keymaster

    Hello @tekiebelu,,

    We we checked the code you have pasted we found that you have changed the apostrophe enclosing the functions name which is generating the error .

    Please copy the exact code that we have provided without any changes in your child theme functions.php . Also we have only provided the code after the testing and it works fine .

    As for the shop page we do not find such issue when we checked your site and even when we checked the theme locally we are unable to find such issue . So explain the case when you will get such issue so that we could help you .

    Hope this helps .

    best Regards!!

    #53777
    Tenika
    Participant

    I’ve compared what I have and what you provided and couldn’t see any differences but I copied and pasted it again exactly as it was (spaces between lines and all) and this is what I have:

    function restaurantz_pro_child_remove_recommended_plugins(){

    remove_action( ‘tgmpa_register’, ‘restaurantz_activate_recommended_plugins’ );
    }
    add_action(‘init’, ‘restaurantz_pro_child_remove_recommended_plugins’);
    // END ENQUEUE PARENT ACTION

    Again, there is a blank line above the code to separate it from the code preceding it. This still hasn’t resolved the nag message issue and I’m not sure what I’m doing wrong. I am new to website design, self-taught and know very little about coding (clearly). I’m sure this is user error but I don’t see where I’m getting this wrong compared to what you provided.

    The problem I was having with my shop page is intermittent and I haven’t figured out yet what triggers it to change. If it does again, I’ll post here again and leave it as is until you’ve had a chance to see it. Thanks for all of your help!

    #53791
    wensolutions
    Keymaster

    Hello @tekiebelu,

    Please inform the code editor that you are using as the it is changing the quotation mark .

    Also for your information you can use text editor like notepad so that it won’t change anything in the code .

    Yes please do let us know if you find the issue that you have mentioned earlier .

    Best Regards!!

    #53793
    Tenika
    Participant

    I’m using the code editor included in my cPanel’s file manager module. I’ve never had any trouble with it before now, but there’s a first time for everything! I did use WordPad earlier when comparing the difference between my code and yours but I’ll try notepad as well and see if there’s any difference in the result.

      Can you tell me where the missing mark goes within the code so I can add it manually?

    Is it a quotation mark (“) or an apostrophe (‘)?

    #53794
    wensolutions
    Keymaster

    Hello @tekiebelu,

    Actually nothing is missing but your text editor changes the apostrophe (‘) to (‘) which generates the error.

    So please correct them and verify And not to forget the code works when checked locally .

    Hope that make sense .

    Best Regards!!

    #53831
    Tenika
    Participant

    Hello,
    I’m not sure what happens when I copy and paste the code here that causes the rendering of the apostrophe to look different. When I look at your response on my PC, both of the marks in your response are identical, but when I look at your response on my iPhone, I can see that one is vertical and the other is slanted to the left on the bottom. When I look at the code in my code editor, the mark is vertical and looks identical to all the other marks in the code in the functions.php file. Maybe a screenshot of the snippet of code from the functions.php file will be easier to see. I don’t think the apostrophe is the issue, but could it be a conflict with another line of code in the functions.php file? What else do you need from me to help me get rid of this annoying message block that’s on every single page of my WordPress admin?

    snippet of code as entered on functions.php file

    #53851
    Tenika
    Participant

    If you go to this link: https://lukesfishandchicken.com/buy-food/, you’ll see the problem I was referring to earlier with my page title not being reflected correctly in the header.

    #53917
    wensolutions
    Keymaster

    Hello @tekiebelu,

    While inspecting the code you have provided in the screenshot the code should work correctly.

    You can also replace the code with the one below to check and see if it works :

    function restaurantz_pro_child_remove_recommended_plugins(){
    
    	remove_action( 'tgmpa_register', 'restaurantz_activate_recommended_plugins' );
    }
    add_action('after_setup_theme', 'restaurantz_pro_child_remove_recommended_plugins', 20 );

    If you are still having trouble with the code you can provide us your Admin Login Details to our official support email : support[at]wensolutions.com and we will fix the issue for you.

    Regarding The Title

    With the link You have provided it is actually the Woocommerce archive page, hence showing the archive page title, if you wish to change the title of the page, we can provide you with some custom code to do so. Please provide us details on the title you want to show up on the page so that we can provide some precise fix.

    Best Regards !!

    #54018
    Tenika
    Participant

    Worked like a charm! Thanks so much!

    I’d like for my shop page to say Place an Order like it does in the menu. It shows correctly after I go into WP admin and update the page for some reason. It’s the only page within WooCommerce that does this and I don’t know why or why updating the page makes it show up correctly for a while. I’d appreciate it if you have a code that can sort that out for me.

    #54048
    wensolutions
    Keymaster

    Hello @tekiebelu,

    You can change the title of the shop page archive by adding the following code in your child theme’s functions.php file :

    function restaurantz_child_shop_page_title_filter ( $title ) {
    
        if( is_post_type_archive('product') ) {
    
            $title = esc_html__('Place an Order','restaurantz');
    
        }
    
        return $title;
    
    }
    
    add_filter( 'get_the_archive_title', 'restaurantz_child_shop_page_title_filter');

    Hope this helps,

    Best Regards !!

    #54163
    Tenika
    Participant

    It worked perfectly! Thank you again for all of your help getting these issues resolved. I absolutely love the way our website looks with this theme now!

    #54168
    wensolutions
    Keymaster

    Hello @tekiebelu,

    Glad we could help you !!

    If you have any issues further, please feel free to post your queries and we will happily help you further.

    We will really appreciate if you could help us too by rating our theme in WordPress repo here:-

    https://wordpress.org/support/theme/restaurantz/reviews/

    Best regards !!

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.