Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #945709

    Hi

    Ive been using Enfold with great success to date however I’m having problems implementing the Easy Property Listings (EPL) plugin.

    It is the layout of the listing pages that is giving me problems – EPL is marketed as an easy solution but I find it very difficult due to my low skill level at hard coding – I have a support ticket in with them as Priority Support but it often takes days to get an answer

    I was wondering if you could have a look – there are a few issues

    (front end site access pw is ” twist ” )
    http://gccre.com.au/commercial/large-office-training-facility/

    1. the featured image is not displaying properly
    2. the content spreads to the very edge of the page
    3. I downloaded and installed their customised file for Enfold but it seem to be giving me PHP errors
    4. I am wanting to have the page layout similar to this (which I did a while ago using “Builder” theme)

    with a widget panel at the side and a footer image (not widgets) at the bottom

    if you could give me any clues to go any way to resolving any of these issues I would be very grateful!

    The content of the customised for Enfold single -listing.php file is shown below

    <?php
    	global $avia_config;
    
    	/*
    	 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
    	 */
    	 get_header();
    
    	$title  = __('Blog - Latest News', 'avia_framework'); //default blog title
    	$t_link = home_url('/');
    	$t_sub = "";
    
    	if(avia_get_option('frontpage') && $new = avia_get_option('blogpage'))
    	{
    		$title 	= get_the_title($new); //if the blog is attached to a page use this title
    		$t_link = get_permalink($new);
    		$t_sub =  avia_post_meta($new, 'subtitle');
    	}
    
    	if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
    	
    	do_action( 'ava_after_main_title' );
    
    ?>
    
    		<div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
    
    			<div class='container template-blog template-single-blog '>
    
    				<main class='content units <?php avia_layout_class( 'content' ); ?> <?php echo avia_blog_class_string(); ?>' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>>
    
                        <?php
                        /* Run the loop to output the posts.
                        * If you want to overload this in a child theme then include a file
                        * called loop-index.php and that will be used instead.
                        *
                        */
    
                           /**************************************************/
    			?>
    			<?php
    				global $avia_config, $post_loop_count;
    
    				if(empty($post_loop_count)) $post_loop_count = 1;
    				$blog_style = !empty($avia_config['blog_style']) ? $avia_config['blog_style'] : avia_get_option('blog_style','multi-big');
    				if(is_single()) $blog_style = avia_get_option('single_post_style','single-big');
    
    				$initial_id = avia_get_the_ID();
    
    				// check if we got posts to display:
    				if (have_posts()) :
    
    					while (have_posts()) : the_post();
    
    					/*
    				     * get the current post id, the current post class and current post format
    					 */
    					$url = "";
    					$current_post = array();
    					$current_post['post_loop_count']= $post_loop_count;
    					$current_post['the_id']	   	= get_the_ID();
    					$current_post['parity']	   	= $post_loop_count % 2 ? 'odd' : 'even';
    					$current_post['last']      	= count($wp_query->posts) == $post_loop_count ? " post-entry-last " : "";
    					$current_post['post_type']	= get_post_type($current_post['the_id']);
    					$current_post['post_class'] 	= "post-entry-".$current_post['the_id']." post-loop-".$post_loop_count." post-parity-".$current_post['parity'].$current_post['last']." ".$blog_style;
    					$current_post['post_class']	.= ($current_post['post_type'] == "post") ? '' : ' post';
    					$current_post['post_format'] 	= get_post_format() ? get_post_format() : 'standard';
    					$current_post['post_layout']	= avia_layout_class('main', false);
    					$blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "content";
    					
    					/*If post uses builder change content to exerpt on overview pages*/
    				    if(AviaHelper::builder_status($current_post['the_id']) && !is_singular($current_post['the_id']) && $current_post['post_type'] == 'post')
    				    {
    					   $current_post['post_format'] = 'standard';
    					   $blog_content = "excerpt_read_more";
    				    }
    					
    					
    					/*
    				     * retrieve slider, title and content for this post,...
    				     */
    				    $size = strpos($blog_style, 'big') ? (strpos($current_post['post_layout'], 'sidebar') !== false) ? 'entry_with_sidebar' : 'entry_without_sidebar' : 'square';
    				    
    				    if(!empty($avia_config['preview_mode']) && !empty($avia_config['image_size']) && $avia_config['preview_mode'] == 'custom') $size = $avia_config['image_size'];
    					$current_post['slider']  	= get_the_post_thumbnail($current_post['the_id'], $size);
    					
    					if(is_single($initial_id) && get_post_meta( $current_post['the_id'], '_avia_hide_featured_image', true ) ) $current_post['slider'] = "";
    					
    					
    					$current_post['title']   	= get_the_title();
    					$current_post['content'] 	= $blog_content == "content" ? get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow">  &rarr;</span>') : get_the_excerpt();
    					$current_post['content'] 	= $blog_content == "excerpt_read_more" ? $current_post['content'].'<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow">  &rarr;</span></a></div>' : $current_post['content'];
    					$current_post['before_content'] = "";
    
    					/*
    				     * ...now apply a filter, based on the post type... (filter function is located in includes/helper-post-format.php)
    				     */
    					$current_post	= apply_filters( 'post-format-'.$current_post['post_format'], $current_post );
    					$with_slider    = empty($current_post['slider']) ? "" : "with-slider";
    					/*
    				     * ... last apply the default wordpress filters to the content
    				     */
    				     
    				    
    
    					echo "<article class='".implode(" ", get_post_class('post-entry post-entry-type-'.$post_format . " " . $post_class . " ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo'=>false)).">";
    					
    					echo '<div class="entry-content-wrapper clearfix">';
    					do_action( 'epl_property_single' );
    					echo '</div>';
    					
    					echo "</article>";
    
    					$post_loop_count++;
    					endwhile;
    					else:
    
    				?>
    
    				    <article class="entry">
    					<header class="entry-content-header">
    					    <h1 class='post-title entry-title'><?php _e('Nothing Found', 'avia_framework'); ?></h1>
    					</header>
    
    					<p class="entry-content" <?php avia_markup_helper(array('context' => 'entry_content')); ?>><?php _e('Sorry, no posts matched your criteria', 'avia_framework'); ?></p>
    
    					<footer class="entry-footer"></footer>
    				    </article>
    
    				<?php
    
    					endif;
    
    					if(empty($avia_config['remove_pagination'] ))
    					{
    						echo "<div class='{$blog_style}'>".avia_pagination('', 'nav')."</div>";
    					}
    				?>
    
    				<?php			
    			/**************************************************/
    						
                            //show related posts based on tags if there are any
                            get_template_part( 'includes/related-posts');
    
                            //wordpress function that loads the comments template "comments.php"
                            comments_template();
    
                        ?>
    
    				<!--end content-->
    				</main>
    
    				<?php
    				$avia_config['currently_viewing'] = "blog";
    				//get the sidebar
    				get_sidebar();
    
    				?>
    
    			</div><!--end container-->
    
    		</div><!-- close default .container_wrap element -->
    
    <?php get_footer(); ?>
    #945710

    not sure why that link displayed as a page in the support ticket

    here is the link

    #945716

    & also I am now getting the error below when I try to edit the Home page

    Fatal error: Uncaught Error: Call to undefined function epl_shortcode_listing_search_callback() in /home/gccrecom/public_html/wp-content/plugins/easy-property-listings/lib/widgets/widget-listing-search.php:41 Stack trace: #0 /home/gccrecom/public_html/wp-includes/class-wp-widget.php(372): EPL_Widget_Property_Search->widget(Array, Array) #1 /home/gccrecom/public_html/wp-includes/widgets.php(742): WP_Widget->display_callback(Array, Array) #2 /home/gccrecom/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/widgetarea.php(83): dynamic_sidebar(‘homepage-top’) #3 /home/gccrecom/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php(349): avia_sc_widgetarea->shortcode_handler(Array, ”, ‘av_sidebar’, Array) #4 /home/gccrecom/public_html/wp-includes/shortcodes.php(319): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ”, ‘av_sidebar’) #5 [internal function]: do_shortcode_tag(Array) #6 /home/gccrecom/public_html/wp-includes/shortcodes.php in /home/gccrecom/public_html/wp-content/plugins/easy-property-listings/lib/widgets/widget-listing-search.php on line 41

    #946291

    further to posting I have been able get rid of the php errors

    now it’s just a layout issue with this page
    http://gccre.com.au/commercial/large-office-training-facility/
    as explained above I want to add the footer image and the widget area to the right on this page
    I’ve dropped the footer in using

    <div id="full_slider_2" class="avia-fullwidth-slider main_color avia-shadow avia-builder-el-5 el_after_av_one_third avia-builder-el-last slider-not-first container_wrap fullsize"><div data-size="no scaling" data-lightbox_size="large" data-animation="slide" data-ids="16703" data-video_counter="0" data-autoplay="false" data-bg_slider="false" data-slide_height="" data-handle="av_slideshow_full" data-interval="5" data-class=" " data-css_id="" data-scroll_down="" data-control_layout="av-control-default" data-custom_markup="" data-perma_caption="" data-autoplay_stopper="" data-image_attachment="" data-min_height="0px" data-src="" data-position="top left" data-repeat="no-repeat" data-attach="scroll" data-stretch="" class="avia-slideshow avia-slideshow-2 av-control-default avia-slideshow-no scaling av_slideshow_full avia-slide-slider" itemprop="ImageObject" itemscope="itemscope" itemtype="https://schema.org/ImageObject"><ul class="avia-slideshow-inner" style="padding: 0px;"><li class="av-single-slide slide-1 active-slide" style="visibility: visible; opacity: 1; transition: none; transform: translateZ(0px);"><div data-rel="slideshow-2" class="avia-slide-wrap"><div class="caption_fullwidth av-slideshow-caption caption_bottom"><div class="container caption_container"><div class="slideshow_caption"><div class="slideshow_inner_caption"><div class="slideshow_align_caption"><a href="http://gccre.com.au/contact/" class="avia-slideshow-button avia-button avia-color-black " data-duration="800" data-easing="easeInOutQuad">contact us</a></div></div></div></div></div><img src="http://gccre.com.au/wp-content/uploads/2018/04/bottom-final.jpg" width="2000" height="377" title="bottom-final" alt="" itemprop="thumbnailUrl" style="left: 0px;"></div></li></ul></div></div>

    which I got off “inspect ” code in Chrome and it has the result I want but I’m pretty sure its not the correct way to do it – BUT at least i know how & where to drop the correct code

    so I was hoping you could tell me what is or where I could find the correct code to drop into the template file

    #946378

    ok – I’ve worked a bit more on this
    I have edited both child theme files single-listing.php & archive-listing.php and am getting closer
    – but still 2 issues

    1. I worked out the the sidebar widget code and it now appears on the pages but at the bottom – I added

    <div style="float: right; width: 250px;"> <?php /* Widgetized sidebar */
        if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Pages') ) : ?><?php endif; ?> </div>

    to both pages – I need to have it come up and to the right of the other page content – how do i do this?

    2. the footer image still displays but you will see earlier in this post how I put it in – although it looks right I don’t think it is the correct code – can you advise what the correct code would be?

    #946454

    Hi,

    I am afraid you’ll need to contact the plugin author for more info about the issue. Making third-party plugins compatible with the theme is unfortunately beyond the support scope we offer. Sorry for that!

    Best regards,
    Vinay

    #946462

    its not really a plug in issue

    I am just trying to find the correct pieces code to put Enfold widgets and elements into a child template file and the css to re-arrange them

    #947153

    Hi,

    Please check the plugin documentation or check if the plugin author can help you with it as they know their plugin better. If it was anything to do with enfold we would have surely helped you with it.

    Best regards,
    Vinay

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