Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #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

    #236153

    Hey 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,
    Peter

    #341187
    This reply has been marked as private.
    #342029

    Hey!

    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,
    Ismael

    #342304

    Thanks.
    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/0aa3qp4h14

    Thanks

    #343010

    Hey!

    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,
    Ismael

    #343039

    Hey, 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

    #343886

    Hey!

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

    #344035

    Did that, it’s not working.

    #345120

    Hi!

    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,
    Ismael

    #345327
    This reply has been marked as private.
    #345947
    This reply has been marked as private.
    #346598

    Hey!

    I’m sorry but the login credentials are not working. Please check.

    Best regards,
    Ismael

    #346656
    This reply has been marked as private.
    #347941

    Ismael. any updates?

    #348633

    Hey!

    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,
    Ismael

    #349755

    That doesn’t work either. What could it be?

    #350515

    Hi!

    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, 1 month ago by Elliott.
    #351941
    This reply has been marked as private.
    #352593

    Hi!

    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,
    Elliott

    #352621

    Does that mean all pages won’t have a 404 anymore?

    #353047

    Hi!

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

    #353109

    We use a child theme, maybe the changes were added to the wrong file…

    #354137

    Hey!

    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

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