-
AuthorPosts
-
March 11, 2014 at 10:12 pm #235889
Hi,
In the past, I could implement Google search with the Enfold theme via Google CSE Plugin. With your latest theme updates it seems like Enfold creates a problem with Google CSE that let’s people allow to use the google search engine for one’s website.
Could it have anything to do with the bbpress feature?
The problem is, if I seach for wordpress, I can see the proper results, but the links are all http://www.domain.com/?s=wordpress So if I click on the result, it just shows the same search. So, effectively it is not working at all.
How can I use google search with the Enfold theme so it works
March 12, 2014 at 8:05 am #236153Hey gentlemansgazette!
I’m not familiar with google search and I can’t help you with the implementation. I recommend to install a wordpress search plugin like: SearchWP if you want to improve the search. You can also try to follow the instructions another user posted here: https://kriesi.at/support/topic/how-to-integrate-google-custom-search-cse-into-enfold/ but again, I can’t give you more details about the implementation…
Best regards,
PeterOctober 26, 2014 at 11:59 pm #341187This reply has been marked as private.October 28, 2014 at 7:02 am #342029Hey!
Try to add this on functions.php:
function add_custom_script(){ ?> <script> (function() { var cx = '017133608885378490428:v8rygf2-7ou'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); </script> <gcse:searchresults-only></gcse:searchresults-only> <?php } add_action('wp_head', 'add_custom_script', 10);
I’m not sure if this is going to work but it will print out the google search script inside the head tag.
Best regards,
IsmaelOctober 28, 2014 at 4:44 pm #342304Thanks.
This puts a full width search results in the header, so not even our logo or menu bar is available anymore. Also, it doesn’t have a search bar anymore.
If you scroll down, you still see the old stuff. Basically all I want is just to remove your nothing found notice and the suggestions underneath.
How do I do that?Here are the screenshots of what I want removed
http://awesomescreenshot.com/0b93qp4353
http://awesomescreenshot.com/0aa3qp4h14Thanks
- This reply was modified 10 years ago by gentlemansgazette.
October 29, 2014 at 9:46 pm #343010Hey!
Please post the actual page url here. We would like to inspect it. We’ll help you remove the elements but we won’t be able you assist you with the google search modification. This particular request or modification is more than what we can offer as a support team. This task is simply beyond the scope of support and is not a theme related issue. Please hire a freelance developer or find a third party plugin that coincide with the theme. For further modifications, please visit Envato Studio or Werkpress.
If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries. Thank you for your understanding.
Regards,
IsmaelOctober 29, 2014 at 10:32 pm #343039Hey, I totally understand. If you can just help me remove the enfold elements outlined, I am grateful
The url is http://www.gentlemansgazette.com just search for madder or anything else and you can analyze the problem.
Thanks
October 31, 2014 at 7:10 am #343886Hey!
Thank you for the update.
Please use this on Quick CSS or custom.css to remove the elements:
div#search-fail p.entry-content, section.404_recommendation { display: none !important; }
Cheers!
IsmaelOctober 31, 2014 at 2:50 pm #344035Did that, it’s not working.
November 3, 2014 at 7:35 am #345120Hi!
I can’t see the code anywhere on the custom css. Please add it again on Quick CSS or custom.css then purge the plugin cache or deactivate it.
Best regards,
IsmaelNovember 3, 2014 at 4:18 pm #345327This reply has been marked as private.November 4, 2014 at 5:36 pm #345947This reply has been marked as private.November 5, 2014 at 4:19 pm #346598Hey!
I’m sorry but the login credentials are not working. Please check.
Best regards,
IsmaelNovember 5, 2014 at 5:26 pm #346656This reply has been marked as private.November 7, 2014 at 9:26 pm #347941Ismael. any updates?
November 10, 2014 at 3:06 am #348633Hey!
Sorry for the delay. I’m not sure why it’s not working on the Quick CSS. Have you tried adding it on the child theme’s style.css file?
Best regards,
IsmaelNovember 11, 2014 at 11:51 pm #349755That doesn’t work either. What could it be?
November 13, 2014 at 12:54 am #350515Hi!
Yes that’s weird it’s not working. This seems to work though.
#search-fail section { display: none !important; }
I went ahead and added it to the top of your quick css field.
Cheers!
Elliott- This reply was modified 10 years ago by Elliott.
November 16, 2014 at 1:58 am #351941This reply has been marked as private.November 17, 2014 at 6:21 pm #352593Hi!
You can find the title on line 11 in /enfold/404.php.
echo avia_title(array('title' => __('Error 404 - page not found', 'avia_framework')));
And add this to your custom CSS.
.error404 .entry-content { display: none !important; }
Regards,
ElliottNovember 17, 2014 at 7:05 pm #352621Does that mean all pages won’t have a 404 anymore?
November 18, 2014 at 4:45 pm #353047Hi!
The suggestions above should remove the text but I’m not sure why it’s not working. Maybe because of the google search script. Please hire a freelance developer to investigate this issue further. For further modifications, please visit Envato Studio or Werkpress.
Cheers!
IsmaelNovember 18, 2014 at 5:43 pm #353109We use a child theme, maybe the changes were added to the wrong file…
November 20, 2014 at 8:46 am #354137Hey!
We’ve added it on the Quick CSS field and the child theme’s style.css but it is not working.The only thing left to do is to add an internal css styling on the header: Add this at the very bottom of the child theme’s functions.php file:
function remove_404_content() { ?> <style type="text/css"> div#search-fail p.entry-content, section.404_recommendation, .error404 .entry-content { display: none !important; } </style> <?php } add_action('wp_head', 'remove_404_content');
I hope this works. If not, I’m sorry but you will need to hire a freelance developer to configure the google search script.
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.