Home › Forums › Pro Themes › Restaurantz Pro › Disable Plugin Nag Messages
- This topic has 14 replies, 2 voices, and was last updated 7 years, 1 month ago by wensolutions.
-
AuthorPosts
-
September 18, 2017 at 2:12 am #53595TenikaParticipant
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?September 18, 2017 at 4:14 am #53607wensolutionsKeymasterHello @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!!
September 19, 2017 at 7:21 pm #53750TenikaParticipantHello 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 ACTIONAm 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
September 20, 2017 at 12:52 am #53775wensolutionsKeymasterHello @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!!
September 20, 2017 at 1:33 am #53777TenikaParticipantI’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 ACTIONAgain, 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!
September 20, 2017 at 3:56 am #53791wensolutionsKeymasterHello @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!!
September 20, 2017 at 4:11 am #53793TenikaParticipantI’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 (‘)?
September 20, 2017 at 5:45 am #53794wensolutionsKeymasterHello @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!!
September 20, 2017 at 4:56 pm #53831TenikaParticipantHello,
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?September 21, 2017 at 12:57 am #53851TenikaParticipantIf 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.
September 22, 2017 at 12:38 am #53917wensolutionsKeymasterHello @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 !!
September 23, 2017 at 3:50 am #54018TenikaParticipantWorked 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.
September 24, 2017 at 12:04 am #54048wensolutionsKeymasterHello @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 !!
September 25, 2017 at 5:31 pm #54163TenikaParticipantIt 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!
September 25, 2017 at 11:44 pm #54168wensolutionsKeymasterHello @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 !!
-
AuthorPosts
- You must be logged in to reply to this topic.