Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #635606

    Whenever I use the advanced editor the comments form disappears from my posts or pages. If I revert to the default editor comments come back.

    I never noticed this before. I’m running version 3.5.4

    #635607

    I also noticed that related posts also don;t show up on posts with the ALE in use

    #635632

    Hi,

    Please refer to this post https://kriesi.at/support/topic/alb-and-the-comment-box/#post-468780

    Should you have any question let us know and we will gladly help.

    Best regards,
    Vinay

    #635993

    Nope. Comments still not showing up after I follow the instructions in the referenced thread. Like I said. If I disable ALE comments form shows up. If I enable the ALE comments and related posts disappear.

    I also deactivated all plugins to make sure there was not a conflict somewhere. Comments form and related posts still do not appear. I am running a “child theme” of enfold – below are the contents of my functions file – just in case…

    Thanks.

    <?php
    
    /*
    enfold child theme functions file
    */
    
    if(!function_exists('avia_custom_query_extension'))
    {
        function avia_custom_query_extension($query, $params)
        {
            global $avia_config;
            if(!empty($avia_config['avia_custom_query_options']['order']))
            {
                $query['order'] = $avia_config['avia_custom_query_options']['order'];
            }
    
            if(!empty($avia_config['avia_custom_query_options']['orderby']))
            {
                $query['orderby'] = $avia_config['avia_custom_query_options']['orderby'];
            }
    
            unset($avia_config['avia_custom_query_options']);
    
            return $query;
        }
    
        add_filter('avia_masonry_entries_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avia_post_grid_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avia_post_slide_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avia_blog_post_query', 'avia_custom_query_extension', 10, 2);
    
        add_filter('avf_template_builder_shortcode_elements','avia_custom_query_options', 10, 1);
        function avia_custom_query_options($elements)
        {
            $allowed_elements = array('av_blog','av_masonry_entries','av_postslider','av_portfolio');
    
            if(isset($_POST['params']['allowed']) && in_array($_POST['params']['allowed'], $allowed_elements))
            {
                $elements[] = array(
                    "name" => __("Custom Query Orderby",'avia_framework' ),
                    "desc" => __("Set a custom query orderby value",'avia_framework' ),
                    "id"   => "orderby",
                    "type" 	=> "select",
                    "std" 	=> "",
                    "subtype" => array(
                        __('Default Order',  'avia_framework' ) =>'',
                        __('Title',  'avia_framework' ) =>'title',
                        __('Random',  'avia_framework' ) =>'rand',
                        __('Date',  'avia_framework' ) =>'date',
                        __('Author',  'avia_framework' ) =>'author',
                        __('Name (Post Slug)',  'avia_framework' ) =>'name',
                        __('Modified',  'avia_framework' ) =>'modified',
                        __('Comment Count',  'avia_framework' ) =>'comment_count',
                        __('Page Order',  'avia_framework' ) =>'menu_order')
                );
    
                $elements[] = array(
                    "name" => __("Custom Query Order",'avia_framework' ),
                    "desc" => __("Set a custom query order",'avia_framework' ),
                    "id"   => "order",
                    "type" 	=> "select",
                    "std" 	=> "",
                    "subtype" => array(
                        __('Default Order',  'avia_framework' ) =>'',
                        __('Ascending Order',  'avia_framework' ) =>'ASC',
                        __('Descending Order',  'avia_framework' ) =>'DESC'));
            }
    
            return $elements;
        }
    
        add_filter('avf_template_builder_shortcode_meta', 'avia_custom_query_add_query_params_to_config', 10, 4);
        function avia_custom_query_add_query_params_to_config($meta, $atts, $content, $shortcodename)
        {
            global $avia_config;
            if(empty($avia_config['avia_custom_query_options'])) $avia_config['avia_custom_query_options'] = array();
    
            if(!empty($atts['order']))
            {
                $avia_config['avia_custom_query_options']['order'] = $atts['order'];
            }
    
            if(!empty($atts['orderby']))
            {
                $avia_config['avia_custom_query_options']['orderby'] = $atts['orderby'];
            }
    
            return $meta;
        }
    }
    
    add_theme_support( 'post-thumbnails' );
    //MAP LIST
    
    add_filter('avf_builder_boxes', 'add_builder_to_posttype');
    
    function add_builder_to_posttype($metabox)
    {
    	foreach($metabox as &$meta)
    	{
    		if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout')
    		{
    			$meta['page'][] = 'tribe_venue'; /*instead add the name of the custom post type here*/
    		}
    	}	
    
    	return $metabox;
    }
    
    //So I can change the layout of an archive page
    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'single-small';
    return $layout;
    }
    
    ?>
    #636536

    Hi,

    Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Regards,
    Rikard

    #638105

    Thanks Rikard, see private content

    #638839

    Hi,

    There might be some corrupted files, so please delete all theme files completely via FTP, before installing a fresh copy from your themeforest account. Here is a short tutorial on how to install the theme via FTP, in case you are not sure how that works:

    Best regards,
    Andy

    #639490

    Thanks Andy, I did as suggested;

    1. Removed the active enfold directory
    2. uploaded a new clean enfold theme folder (just downloaded from TF) and made that the active theme (not my child theme).
    3. Deactivated ALL plug-ins to make sure there were no conflicts.

    Result:
    Posts that do not use the Advanced Layout Editor show the comments form and related posts.
    Posts that have been built using the advanced layout editor do not have the comments form or the related posts.
    I’ve tested this on several posts. same result each time. As soon as I invoke the advanced layout editor the comments form and related posts functionality go away.

    I’ve reverted my install to the child-theme (using the brand new uploaded enfold theme as parent) and re-activated my plugins so my site is restored. Still no comments form…

    Thanks again.

    #640078

    Hi!

    Posts that do not use the Advanced Layout Editor show the comments form and related posts.
    Posts that have been built using the advanced layout editor do not have the comments form or the related posts.

    Sorry for the confusion. That is actually the default template when you use the advance layout builder for posts. All default elements such as the featured image, title, post meta info, related section, comments etc. will be removed. You will be able to start from scratch and design the post content as you please. If you need to add the comment section, use the “Comments” element under the Content Elements panel. For the related section, use the blog posts or any other posts elements like magazine, posts slider etc.

    Best regards,
    Ismael

    #641748

    Ha! that was a simple fix. Thank you.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Comments’ is closed to new replies.