-
AuthorPosts
-
August 11, 2016 at 4:31 am #671125
Hi. I just removed the Recent and Popular sections of this widget but now even though Comments is the only one which appears you have to click on it before the actual comments appear.
How do I make the comments appear by default?
Thanks.August 14, 2016 at 3:49 pm #672385Hey Mark,
It appears there are two tabs and one of them might be empty. Please remove the tab’s and re-create it and it should show by default.
Let us know if you have any questions.
Best regards,
VinayAugust 15, 2016 at 1:31 am #672417Hi Vinay. Thanks for getting back to me. I’m not sure how to do that.
I found this code in a search :.widget_tab_popular{ display: none !important; }
.widget_tab_recent { display: none !important; }
This removed the 2 tabs I didn’t want but as I said the comments don’t actually appear now as default.
Mark.
August 17, 2016 at 6:00 am #673501Hi,
Thank you for the info. Please add this in the functions.php file to trigger the tab automatically:
// custom script add_action( 'wp_footer', 'ava_custom_script' ); function ava_custom_script() { ?> <script type="text/javascript"> (function($) { function e() { var comment = $('.widget_tab_comments'); if(!comment.length) return; comment.trigger('click'); } $(window).load(function() { e(); }); })(jQuery); </script> <?php }
Best regards,
IsmaelAugust 17, 2016 at 7:59 am #673538Thanks but this didn’t work.
I got this error:Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/thegrea7/public_html/wp-content/themes/enfold/functions.php on line 536
I removed it and still have this error and my site does not work anymore!
Help. My site is now down. I cannot even access the backend.
- This reply was modified 8 years, 3 months ago by marko7.
August 18, 2016 at 12:26 am #673900Fixed it. The code was still on the file even though I removed it from the WP editor.
Still have the problem of comments not showing by default though.August 21, 2016 at 6:18 am #675209Hi,
Did you add the script? Please copy it directly from this forum, not from your email. Or post the login details here. We’ll it in the functions.php file.
Best regards,
IsmaelAugust 21, 2016 at 6:26 am #675214Login details supplied
August 23, 2016 at 1:22 pm #676385Hi,
Please update the theme to the latest version. That should fix any issues you are currently experiencing :)
To update to the latest version follow the simple instructions here. (Or if you want the super detailed explanation you can read this blog post)
If that does not help, feel free to reply here and we will take a closer look at the issue.
Best regards,
AndyAugust 24, 2016 at 8:53 am #676855I’m running the latest version.
August 29, 2016 at 8:07 am #678756Hi,
We added the code in the functions.php file. Please remove browser cache or hard refresh the page.
Best regards,
IsmaelAugust 29, 2016 at 11:22 am #678798Brilliant. Thank you.
September 1, 2016 at 4:43 am #680437 -
AuthorPosts
- The topic ‘Enfold Combo Widget’ is closed to new replies.