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

    Hello,

    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:
    https://kriesi.at/support/topic/the-blog-grid-is-not-being-displayed-correctly-in-version-2-4-5/
    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!

    #367524

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

    #367624

    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:
    https://support.google.com/webmasters/answer/35769?hl=en → Please find ‘technical guidelines”
    https://support.google.com/webmasters/answer/66353

    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!

    #368013

    Hi!

    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>";
    

    Cheers!
    Elliott

    #368027

    @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 ?

    #368242

    Hi Elliott!

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

    #368542

    Hi!


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

    Regards,
    Elliott

    #369147

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

    #369187

    Hey!

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

    Regards,
    Elliott

    #369193

    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 ?

    #369515

    Hey!

    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'];
    

    Regards,
    Elliott

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