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

    #672385

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

    #672417

    Hi 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.

    http://www.thegreatoceanwalk.com

    #673501

    Hi,

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

    #673538

    Thanks 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.
    #673900

    Fixed 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.

    #675209

    Hi,

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

    #675214

    Login details supplied

    #676385

    Hi,

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

    #676855

    I’m running the latest version.

    #678756

    Hi,

    We added the code in the functions.php file. Please remove browser cache or hard refresh the page.

    Best regards,
    Ismael

    #678798

    Brilliant. Thank you.

    #680437

    Hi,

    Great, glad we could help :-)

    Please open a new thread if you should have any further questions or problems.

    Regards,
    Rikard

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Enfold Combo Widget’ is closed to new replies.