Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #367188


    I have a query regarding ‘404 Page not found’ error page.
    Please find the URL in the private content.

    There is a コメント(Comments) button at the right side of the page, which I don’t want to display. It seems that those three buttons are displayed by a widget. I couldn’t find the php file for editing it. Is there any solution for hiding that button?

    I have another problem regarding the title of 404 page. Currently it is 新着情報 which means latest information. Previously I asked a question regarding changing the title of ‘latest posts’ page and I got this URL from Kriesi:
    I made changes according to instructions but those changes were been applied for the 404 page also, which is irrelevant.

    Please let me know the solutions for the queries as soon as possible because the website is already been launched.

    Thank you!


    Hi happyseed!

    Would a CSS fix be ok for hiding it?

    .widget_tab_comments {
        display: none !important;

    And try changing the function to this.

    add_filter('avf_title_args', 'avf_blog_title', 10, 2);
    function avf_blog_title($args, $id) {
    	if ( !is_404() ) { $args['title'] = 'Blog Grid'; }
    	return $args;

    Best regards,


    Hi Elliott

    Thanks for your prompt reply.
    I could fix the title issue by modifying the function.

    Regarding the CSS fix:
    Is it okay hiding the text using CSS? I checked the webmaster rules and regulations regarding CSS.
    Here are the links for your reference: → Please find ‘technical guidelines”

    I have this doubt because hiding elements using CSS might be penalized as it is against the rules. However, I couldn’t find whether it is applicable for the ‘display: none!important;.
    Is there any solution for showing only 2 tabs ‘(人気)-popular and (最近)-recent’ by editing PHP or JS code? I have a doubt that, a recursive function might have been used in the PHP or JS file hence the tabs are being added automatically.

    Thank you!



    Your not doing anything deceptive so I don’t think that’s going to matter. You can find that on lines 943 – 946 in /enfold/framework/php/class-framework-widgets.php.

    echo '<div class="tab widget_tab_comments"><span>'.__('Comments', 'avia_framework').'</span></div>';
    echo "<div class='tab_content'>";
    avia_get_comment_list( array('number' => $posts, 'status' => 'approve', 'order' => 'DESC') );
    echo "</div>";



    @happyseed a very goog question.
    I would like to add anather one :
    Is it possible to have “latest porfolio” instead of those three “Popular, Recent and Comments”,
    If so what should I change/add in /class-framework-widgets.php ?


    Hi Elliott!

    Thanks for the fix! I could edit the code and 404 error page is now completed.
    Thanks for your support!
    Thanks @begrafiks !



    , We already have a widget for displaying the latest portfolio entries. It’s called “Enfold Latest Portfolio” and you can find it in Dashboard > Appearance > Widgets.



    Thanks @Elliott,
    I’ve seen and used “Latest portfolio entries” in the Pages of the site, I would like to know (following your information above –December 14, 2014 at 7:48 pm-), I was asking, if it was possible to add it at the end of the 404 Page. Actually the end of the 404 Page is occupied by “Popular, Recent and Comments” widget.



    In that case open up /enfold/includes/error404.php and change line 36 from this.

    the_widget('avia_combo_widget', 'error404widget', array('widget_id'=>'404',

    To this.

    the_widget('avia_portfoliobox', 'error404widget', array('widget_id'=>'404',



    Thanks @Elliott,
    It’s great,
    but “avia_portfoliobox” doesn’t act as “Latest portfolio entries” inwhich we are able to chose a number of item.
    avia_portfoliobox” brings all! portfolio items.
    Is it possible to have only some of them, let’s say 5 or 6 ?



    Open up /enfold/framework/php/class-framework-widgets.php and change line 442 from this.

    $count = empty($instance['count']) ? '' : $instance['count'];

    To this.

    $count = empty($instance['count']) ? '3' : $instance['count'];


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