Viewing 30 results - 151 through 180 (of 247 total)
  • Author
    Search Results
  • #427496

    Hey waveseven!

    Thank you for coming back.

    You need to modify a core file:
    enfold\config-templatebuilder\avia-shortcodes\portfolio.php line 720:

    Look for:

    
    $output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";
    

    and replace with:

    
    $output .= "<h2 class='portfolio-preview-title entry-title' $markup>".$entry->post_title."</h2>";
    

    Remember to do this after every update.

    Regards,
    Günter

    leplusweb
    Participant

    Hi !

    I have a website with the enfold theme and The Events Calendar plugin.

    I figure that the thumbnail for the next event are define in the file enfold/config-templatebuilder/avia-shortcodes/events_upcoming.php function shortcode_handler().

    I have a simple question. I want to change the type of thumbnail “square” by “portfolio-small” in

    $image = get_the_post_thumbnail($entry->ID, 'square', array( 'class' => 'av-upcoming-event-image' ));

    So in my functions.php of my child-theme I have add :

    	add_action( 'shortcode_handler', 'homepage_agenda' );
    	
    	
    	
    		/**
    		 * Frontend Shortcode Handler HOMEPAGE AGENDA
    		 *
    		 * @param array $atts array of attributes
    		 * @param string $content text within enclosing form of shortcode element
    		 * @param string $shortcodename the shortcode found, when == callback name
    		 * @return string $output returns the modified html string
    		 */
    		function homepage_agenda($atts, $content = "", $shortcodename = "", $meta = "")
    		{
    			$atts =  shortcode_atts(array(
    								 'categories' 	=> "",
    								 'items' 		=> "3",
    								 'paginate' 	=> "no",
    								 
                                     ), $atts, $this->config['shortcode']);
    			$output = "";
    			$posts 	= $this->query_entries( $atts );
    			$entries= $posts->posts;
    			
    			if (!empty($entries))
    			{	global $post;
    				
    				$default_id = $post->ID;
    				$output .= "<div class='av-upcoming-events ".$meta['el_class']."'>";
    				foreach($entries as $entry)
    				{	
    					$class  = "av-upcoming-event-entry";
    					$image  = get_the_post_thumbnail($entry->ID, 'portfolio_small', array( 'class' => 'av-upcoming-event-image' ));
    					$class .= empty($image) ? " av-upcoming-event-with-image" : " av-upcoming-event-without-image";
    					$title  = get_the_title($entry->ID);
    					$link	= get_permalink($entry->ID);
    					
    					$post->ID = $entry->ID; //temp set of the post id so that tribe fetches the correct price symbol
    					$price  = tribe_get_cost( $entry->ID, true );
    					$venue  = tribe_get_venue( $entry->ID );
    					$post->ID = $default_id;
    					
    					$output .= "<a href='{$link}' class='{$class}'>";
    					
    		if($image)  $output .= $image;
    					$output .= "<div class='av-upcoming-event-data'>";
    						$output .= "<h4 title='av-upcoming-event-title'>{$title}</h4>";
    							$output .= "<div class='av-upcoming-event-meta'>";
    							$output .= "<span class='av-upcoming-event-schedule'>".tribe_events_event_schedule_details($entry)."</span>";
    				if($price)	$output .= "<span class='av-upcoming-event-cost'>{$price}</span>";
    	if( $price && $venue )	$output .= " - ";	
    				if($venue)	$output .= "<span class='av-upcoming-event-venue'>{$venue}</span>";
    							$output .= apply_filters('avf_upcoming_event_extra_data', "", $entry);
    							$output .= "</div>";
    						$output .= "</div>";
    					$output .= "</a>";
    				}
    				
    				if($atts['paginate'] == "yes" && $avia_pagination = avia_pagination($posts->max_num_pages, 'nav'))
    				{
    					$output .= "<div class='pagination-wrap pagination-".TribeEvents::POSTTYPE."'>{$avia_pagination}</div>";
    				}
    				
    				$output .= "</div>";
    			}
    			
    			
    			
    			return $output;
    		}

    Is that correct ? The thumbnail stay in square size (180px by 180px). If i change directly in the events_upcoming.php file it’s work. But i want to do it properly.

    Thanks for your help and time

    Regard

    #418838

    Hi brainboxstudios!

    Open up /enfold/config-templatebuilder/avia-shortcodes/magazine.php and change line 529 from this.

    $title	 		= "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a>";
    

    To this.

    $title	 		= get_the_title($entry->ID);
    

    Best regards,
    Elliott

    #417476

    Hola Lidia,

    Copia esto al functions.php de tu child theme:

    function avia_post_nav($same_category = true, $taxonomy = 'category') {
    	global $wp_version;
            $settings = array();
            $settings['same_category'] = $same_category;
            $settings['excluded_terms'] = '';
    		$settings['wpversion'] = $wp_version;
         
    	//dont display if a fullscreen slider is available since they overlap 
    	if((class_exists('avia_sc_layerslider') && !empty(avia_sc_layerslider::$slide_count)) || 
    		class_exists('avia_sc_slider_full') && !empty(avia_sc_slider_full::$slide_count) ) $settings['is_fullwidth'] = true;
    
    	$settings['type'] = get_post_type();
    	$settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy;
    
    	if(!is_singular() || is_post_type_hierarchical($settings['type'])) $settings['is_hierarchical'] = true;
    	if($settings['type'] === 'topic' || $settings['type'] === 'reply') $settings['is_bbpress'] = true;
    
            $settings = apply_filters('avia_post_nav_settings', $settings);
            if(!empty($settings['is_bbpress']) || !empty($settings['is_hierarchical']) || !empty($settings['is_fullwidth'])) return;
    
            if(version_compare($settings['wpversion'], '3.8', '>=' ))
            {
                $entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
                $entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
            }
            else
            {
                $entries['prev'] = get_previous_post($settings['same_category']);
                $entries['next'] = get_next_post($settings['same_category']);
            }
            
    	$entries = apply_filters('avia_post_nav_entries', $entries, $settings);
         $output = "";
    
    	foreach ($entries as $key => $entry)
    	{
             if(empty($entry)) continue;
    		$the_title 	= isset($entry->av_custom_title) ? $entry->av_custom_title : avia_backend_truncate(get_the_title($entry->ID),75," ");
    		$link 		= isset($entry->av_custom_link)  ? $entry->av_custom_link  : get_permalink($entry->ID);
    		$image 		= isset($entry->av_custom_image) ? $entry->av_custom_image : get_the_post_thumbnail($entry->ID, 'thumbnail');
    		
             $tc1   = $tc2 = "";
             $class = $image ? "with-image" : "without-image";
    
             $output .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >";
    	    $output .= "    <span class='label iconfont' ".av_icon_string($key)."></span>";
    	    $output .= "    <span class='entry-info-wrap'>";
    	    $output .= "        <span class='entry-info'>";
    	    $tc1     = "            <span class='entry-title'>{$the_title}</span>";
    		if($image)  $tc2     = "            <span class='entry-image'>{$image}</span>";
             $output .= $key == 'prev' ?  $tc1.$tc2 : $tc2.$tc1;
             $output .= "        </span>";
             $output .= "    </span>";
    	    $output .= "</a>";
    	}
    	return $output;
    }

    Saludos,
    Josue

    #409039

    Hi romano2!

    In /enfold/config-templatebuilder/avia-shortcodes/portfolio.php, around line 720:

    $output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";
    

    But you’d first need to get the taxonomy ID in order to get term_description to work. You can use this function for that – http://codex.wordpress.org/Function_Reference/wp_get_post_terms

    Regards,
    Josue

    #408417

    Hi!

    1. Open up /enfold/includes/loop-author.php and around line 67 you should see this.

    <header class="entry-content-header">
    

    Add this above it.

    <?php echo "<div class='blog-meta'>";
    
    $blog_meta_output = "";
    $icon =  '<span class="iconfont" '.av_icon_string($post_format).'></span>';
    
    	if(strpos($blog_style, 'multi') !== false)
    	{
    		$gravatar = "";
    		$link = get_post_format_link($post_format);
    		if($post_format == 'standard')
    		{
    			$author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author);
    	$author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author);
    			
    	$gravatar_alt = esc_html($author_name);
    	$gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt);
    	$link = get_author_posts_url($post->post_author);
    		}
    
    		$blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
    	}
    	else if(strpos($blog_style, 'small')  !== false)
    	{
    		$blog_meta_output = "<a href='{$link}' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>";
    	}
    
    echo apply_filters('avf_loop_index_blog_meta', $blog_meta_output);
    
    echo "</div>";
    ?>

    2. Add this to your custom CSS.

    .post-author-format-type.blog-meta * {
      height: 120px;
      position: relative;
      width: 120px;
    }

    Regards,
    Elliott

    #404989

    Hey DustinH93!

    Thank you for using Enfold.

    1.) Please look for this code:

    if($show_meta && !empty($excerpt))
    					{
    						$output .= "<div class='slide-meta'>";
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						}

    Replace it with:

     if($show_meta && !empty($excerpt))
    					{
    						$output .= "<div class='slide-meta'>";
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Contribute', 'avia_framework' ) : __('Contribute', 'avia_framework' );
    							$commentCount = $commentCount !== "0" ? $commentCount : '';
    							$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";					
    						} 

    Again, look for this line of code:

    $commentCount = get_comments_number($the_id);
    

    Replace it with:

    $commentCount = $entry->comment_count;
    

    2.) Can you please provide a link to the issue? We would like to check it.

    Best regards,
    Ismael

    #403177

    Hola,

    Abre /enfold/config-templatebuilder/avia-shortcodes/postslider.php y cambia esta linea:

    $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';
    

    Por:

    $output .= !empty($title) ? "<h2 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h2>" : '';
    

    Sobre lo del logo añade esto a functions.php:

    add_filter( 'avf_logo_headline',  'change_logo_to_h1', 10);
    function change_logo_to_h1() {
    	return "h1";
    }

    Saludos,
    Josue

    #401980

    In reply to: Magazine issue

    Hi!

    Edit confg-templatebuilder > avia-shortcodes> magazine.php, look for this code on line 583:

    $output .=			"<time class='av-magazine-time updated' {$markupTime}>".$time."</time>";
    			$output .=			$separator.$author_output;
    			$output .=			"<{$titleTag} class='av-magazine-title entry-title' {$markupTitle}>{$title}</{$titleTag}>";

    Replace it with:

    $output .=			"<{$titleTag} class='av-magazine-title entry-title' {$markupTitle}>{$title}</{$titleTag}>";
    $output .=			$separator.$author_output;
    			$output .=			"<time class='av-magazine-time updated' {$markupTime}>".$time."</time>";

    On the same file, look for this code on line 529:

    $title	 		= "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a>";
    

    Replace it with this code to remove the link:

    $title	 		= "<a {$titleAttr}>".get_the_title($entry->ID)."</a>";
    

    Regards,
    Ismael

    Hi!

    Add the whole avia_post_nav function on the child theme’s functions.php:

    function avia_post_nav($same_category = false, $taxonomy = 'category')
    	{
    		global $wp_version;
    	        $settings = array();
    	        $settings['same_category'] = $same_category;
    	        $settings['excluded_terms'] = '';
    			$settings['wpversion'] = $wp_version;
            
    		//dont display if a fullscreen slider is available since they overlap 
    		if((class_exists('avia_sc_layerslider') && !empty(avia_sc_layerslider::$slide_count)) || 
    			class_exists('avia_sc_slider_full') && !empty(avia_sc_slider_full::$slide_count) ) $settings['is_fullwidth'] = false;
    
    		$settings['type'] = get_post_type();
    		$settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy;
    
    		if(!is_singular() || is_post_type_hierarchical($settings['type'])) $settings['is_hierarchical'] = true;
    		if($settings['type'] === 'topic' || $settings['type'] === 'reply') $settings['is_bbpress'] = true;
    
    	        $settings = apply_filters('avia_post_nav_settings', $settings);
    	        if(!empty($settings['is_bbpress']) || !empty($settings['is_hierarchical']) || !empty($settings['is_fullwidth'])) return;
    	
    	        if(version_compare($settings['wpversion'], '3.8', '>=' ))
    	        {
    	            $entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	            $entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	        }
    	        else
    	        {
    	            $entries['prev'] = get_previous_post($settings['same_category']);
    	            $entries['next'] = get_next_post($settings['same_category']);
    	        }
    	        
    		$entries = apply_filters('avia_post_nav_entries', $entries, $settings);
            $output = "";
    
    		foreach ($entries as $key => $entry)
    		{
                if(empty($entry)) continue;
    			$the_title 	= isset($entry->av_custom_title) ? $entry->av_custom_title : avia_backend_truncate(get_the_title($entry->ID),75," ");
    			$link 		= isset($entry->av_custom_link)  ? $entry->av_custom_link  : get_permalink($entry->ID);
    			$image 		= isset($entry->av_custom_image) ? $entry->av_custom_image : get_the_post_thumbnail($entry->ID, 'thumbnail');
    			
                $tc1   = $tc2 = "";
                $class = $image ? "with-image" : "without-image";
    
                $output .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >";
    		    $output .= "    <span class='label iconfont' ".av_icon_string($key)."></span>";
    		    $output .= "    <span class='entry-info-wrap'>";
    		    $output .= "        <span class='entry-info'>";
    		    $tc1     = "            <span class='entry-title'>{$the_title}</span>";
    if($image)  $tc2     = "            <span class='entry-image'>{$image}</span>";
                $output .= $key == 'prev' ?  $tc1.$tc2 : $tc2.$tc1;
                $output .= "        </span>";
                $output .= "    </span>";
    		    $output .= "</a>";
    		}
    		return $output;
    	}

    Regards,
    Ismael

    #394336

    Hey brandonwu!

    Thank you for using our theme.

    You have to modify the file enfold\config-templatebuilder\avia-shortcodes\testimonials.php.

    Goto line 385ff and you find:

    
    				$output .= "<div class='avia-testimonial {$class}' $markup>";
    				$output .= "<div class='avia-testimonial_inner'>";
    	if($grid)   $output .= $avatar;
    				$output .= 		"<div class='avia-testimonial-content {$this->content_class}'  {$this->content_styling} {$markup_text}>";
    				$output .= 		ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content));
    				$output .= 		"</div>";
    				$output .= 			"<div class='avia-testimonial-meta'><div class='avia-testimonial-arrow-wrap'><div class='avia-arrow'></div></div>";
    	if(!$grid)  $output .=  $avatar;
    				$output .= 				"<div class='avia-testimonial-meta-mini'>";
    	if($name)	$output .= 					"<strong  class='avia-testimonial-name'  {$this->title_styling} {$markup_name}>{$name}</strong>";
    if($subtitle)	$output .= 					"<span  class='avia-testimonial-subtitle {$this->subtitle_class}' {$this->title_styling}  {$markup_job}>{$subtitle}</span>";
        if($link)	$output .= 					"<span class='hidden avia-testimonial-markup-link'  {$markup_url}>{$link}</span>";
    	if($link)	$output .= 					" &ndash; <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";
    				$output .= 				"</div>";
    				$output .= 			"</div>";
    				$output .= "</div>";
    				$output .= "</div>";
    

    Replace with:

    
    				$output .= "<div class='avia-testimonial {$class}' $markup>";
    				$output .= "<div class='avia-testimonial_inner'>";
    	if($grid)   $output .= $avatar;
    				$output .= 			"<div class='avia-testimonial-meta'><div class='avia-testimonial-arrow-wrap'><div class='avia-arrow'></div></div>";
    	if(!$grid)  $output .=  $avatar;
    				$output .= 				"<div class='avia-testimonial-meta-mini'>";
    	if($name)	$output .= 					"<strong  class='avia-testimonial-name'  {$this->title_styling} {$markup_name}>{$name}</strong>";
    if($subtitle)	$output .= 					"<span  class='avia-testimonial-subtitle {$this->subtitle_class}' {$this->title_styling}  {$markup_job}>{$subtitle}</span>";
        if($link)	$output .= 					"<span class='hidden avia-testimonial-markup-link'  {$markup_url}>{$link}</span>";
    	if($link)	$output .= 					" &ndash; <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";
    				$output .= 				"</div>";
    				$output .= 			"</div>";
    				
    //  these 3 lines have been moved !!!!
    				$output .= 		"<div class='avia-testimonial-content {$this->content_class}'  {$this->content_styling} {$markup_text}>";
    				$output .= 		ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content));
    				$output .= 		"</div>";
    				
    				$output .= "</div>";
    				$output .= "</div>";
    
    

    Regards,
    Günter

    #394279

    Hey!

    Thank you for using our theme.

    You have to modify the core file enfold\config-templatebuilder\avia-shortcodes\postslider.php.

    Goto line 375 you find:

    
                       if($show_meta && !empty($excerpt))
    					{
    						$output .= "<div class='slide-meta'>";
    						
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    						$output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$output .= "</div>";
    					}
    

    Replace with:

    
     if($show_meta && !empty($excerpt))
    					{
    						$output .= "<div class='slide-meta'>";
    						
    						$author_id = $entry->post_author;
    						$author_name = get_the_author_meta('display_name', $author_id);
    						$author_link = get_the_author_meta('user_url', $author_id);
    						$output .= "<div class='slide-meta-comments'><a href='{$author_link}'>{$author_name}</a></div>";
    //						$output .= "<div class='slide-meta-del'>/</div>";
    						
    //						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    //						{
    //							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    //							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    //
    //							$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    //						}
    //                        $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    //						$output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$output .= "</div>";
    					}
    

    Cheers!
    Günter

    #386374

    Hi nelsonq!

    1- Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .avia-content-grid-active .entry-content {
    text-align: justify;
    }

    2- Can you please go to Enfold/config-templatebuilder/avia-shortcodes folder open magazine.php file and find

    $title	 		= "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a>";

    and change it to

    $title	 		= "<a href='{$link}' {$titleAttr}>".get_the_title(icl_object_id($post->ID))."</a>";

    and check if that helps?

    Regards,
    Yigit

    • This reply was modified 10 years, 11 months ago by Yigit.
    #377908

    Hi bjornwallman!

    Thank you for using Enfold.

    Add this on functions.php:

    function limit_words($string, $word_limit){
    	$words = explode(" ",$string);
    	return implode(" ",array_splice($words,0,$word_limit)) . '...';
    }

    Edit config-template-builder > postslider.php, find this code on line 372:

    $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';
    

    Replace it with:

    $blogtitle = limit_words($title,5);
                        $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($blogtitle))."'>".$blogtitle."</a></h3>" : '';
    

    This will limit the title to 5 words. Adjust it on this line:

    $blogtitle = limit_words($title,5);
    

    Regards,
    Ismael

    #375845

    Hey!

    Open up /enfold/config-templatebuilder/avia-shortcodes/postslider.php and find line 372.

    $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';
    

    Add this beneath it.

    $output .= $permalink;
    

    Best regards,
    Elliott

    #375341

    Hi!

    Try opening up /enfold/config-templatebuilder/avia-shortcodes/image.php and change line 287 from this.

    $output.= "<a href='{$link}' class='avia_image'  {$blank}>{$overlay}<img class='avia_image ' src='{$src}' alt='{$alt}' title='{$title}' $markup_url /></a>";
    

    To this.

    $output.= "<a href='{$link}' class='avia_image'  {$blank}><img class='avia_image ' src='{$src}' alt='{$alt}' title='{$title}' $markup_url />{$overlay}</a>";
    

    Best regards,
    Elliott

    #374603

    Hey smallbizva!

    Thank you for using Enfold.

    You can edit config-templatebuilder > avia-shortcodes > testimonials.php, find this code on line 388:

    $output .= 		"<div class='avia-testimonial-content {$this->content_class}'  {$this->content_styling} {$markup_text}>";
    				$output .= 		ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content));
    				$output .= 		"</div>";
    				$output .= 			"<div class='avia-testimonial-meta'><div class='avia-testimonial-arrow-wrap'><div class='avia-arrow'></div></div>";
    	if(!$grid)  $output .=  $avatar;
    				$output .= 				"<div class='avia-testimonial-meta-mini'>";
    	if($name)	$output .= 					"<strong  class='avia-testimonial-name'  {$this->title_styling} {$markup_name}>{$name}</strong>";
    if($subtitle)	$output .= 					"<span  class='avia-testimonial-subtitle {$this->subtitle_class}' {$this->title_styling}  {$markup_job}>{$subtitle}</span>";
        if($link)	$output .= 					"<span class='hidden avia-testimonial-markup-link'  {$markup_url}>{$link}</span>";
    	if($link)	$output .= 					" &ndash; <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";
    				$output .= 				"</div>";
    				$output .= 			"</div>";
    

    Replace it with:

    
    				$output .= 			"<div class='avia-testimonial-meta'><div class='avia-testimonial-arrow-wrap'><div class='avia-arrow'></div></div>";
    	if(!$grid)  $output .=  $avatar;
    				$output .= 				"<div class='avia-testimonial-meta-mini'>";
    	if($name)	$output .= 					"<strong  class='avia-testimonial-name'  {$this->title_styling} {$markup_name}>{$name}</strong>";
    if($subtitle)	$output .= 					"<span  class='avia-testimonial-subtitle {$this->subtitle_class}' {$this->title_styling}  {$markup_job}>{$subtitle}</span>";
        if($link)	$output .= 					"<span class='hidden avia-testimonial-markup-link'  {$markup_url}>{$link}</span>";
    	if($link)	$output .= 					" &ndash; <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";
    				$output .= 				"</div>";
    				$output .= 			"</div>";
    $output .= 		"<div class='avia-testimonial-content {$this->content_class}'  {$this->content_styling} {$markup_text}>";
    				$output .= 		ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content));
    				$output .= 		"</div>";

    Regards,
    Ismael

    #374112

    Hey!

    Open up /enfold/config-templatebuilder/avia-shortcodes/postslider.php and on lines 378 – 384 you should see this.

    if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    {
    	$link_add = $commentCount === "0" ? "#respond" : "#comments";
    	$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    	$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    }
    

    Change it to this.

    $output .= '<span class="blog-author minor-meta">'.__('by','avia_framework')." ";
    $output .= '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>';
    $output .= '<span class="vcard author"><span class="fn">';
    $output .= get_the_author_link();
    $output .= '</span></span>';
    $output .= '</span>';
    $output .= "<div class='slide-meta-del'>/</div>";
    

    Cheers!
    Elliott

    #370529

    Dear Günter,

    thanks for your suggestion. I added this as a feature request. But apart from that, may you assist me to add the needed code?

    I already created the directories “config-templatebuilder\avia-shortcodes” in my child-theme.

    I think in “buttons.php” I need to add some code to line 34 following (new array for entering the link title in the backend?) and lines 284 following (output):

    
    $output  = "";
    $output .= "<a href='{$link}' title='???'>class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";
    $output .= $content_html;
    $output .= "</a>";
    $output =  "<div class='avia-button-wrap avia-button-".$atts['position']." ".$meta['el_class']."'>".$output."</div>"; 

    But I have to admit I can’t. :) May you assist me with that?

    • This reply was modified 11 years ago by parperei.
    #370048
    iwebware
    Participant

    I wanted to remove the anchor tag of the “Portfolio Item Title” via the child’d theme. Unfortunately the changes I made does not take effect. What approach should I take in order to make this work without having the parent’s theme edited. Any answers would much be appreciated.

    Reference link:
    https://kriesi.at/support/topic/portfolio-item-title/

    Code:
    $output .= “<h2 class=’portfolio-preview-title entry-title’ $markup>“.$entry->post_title.”</h2>”;

    #365770

    Hi!

    Please look for this code:

    $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';
    

    Replace it with:

    $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';
    					$publisheddate = get_the_time('Y-m-d');			
    					$published = strtotime($publisheddate);
    					$expiration = $published + (7 * 24 * 60 * 60);
    					$today = current_time('timestamp');
    				
    					if($expiration > $today) {
    						$output .= "<span class='new-post-meta'>NEW</span>";
    					}

    Cheers!
    Ismael

    #365412
    This reply has been marked as private.
    #365211

    Hi!

    Looks like you’re using the grid layout. You can edit config-templatebuilder > avia-shortcodes > postslider.php. Look for this code:

    $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';
    

    For further modifications, please visit Envato Studio or Werkpress.

    Cheers!
    Ismael

    #364832

    Hi Effektid!

    Your site is under a coming soon plugin it looks like so I could not view your links. Are you using this layout? http://kriesi.at/themes/enfold/blog/blog-single-small/

    If so then you can change the size for that on line 100 in the functions.php file.

    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs
    

    As for lightbox try opening up /enfold/includes/loop-index.php and change line 121 from this.

    $blog_meta_output = "<a href='{$link}' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>";
    

    To this.

    $blog_meta_output = "<a href='".avia_image_by_id(get_post_thumbnail_id(), 'large', 'url')."' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>";
    

    Best regards,
    Elliott

    Hi!

    If you want to add the category on the grid blog style, please edit postslider.php. Look for this code:

    $output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));				

    Replace it with:

    $output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));				$category = get_the_category($the_id); 
    
                        if(!empty($category))
                        {
                           $output .= '<span class="blog-categories minor-meta">Published '.__('in','avia_framework')." ";
                           $output .= '<a href="' . get_category_link( $category[0]->term_id ) . '">' . $category[0]->cat_name . '</a>';			$output .='</span><div class="slide-meta-del">/</div>';	
                        };

    Best regards,
    Ismael

    #359229

    Hey!

    You can add the read more link manually on the preview content editor or edit config-templatebuilder > avia-shortcodes > portfolio.php. Find this code on line 672:

    $output .= "<div class='entry-content-wrapper entry-content' ".avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$id, 'custom_markup'=>$this->atts['custom_markup'])).">";
    						$output .= $content;
    

    Replace it with:

    $output .= "<div class='entry-content-wrapper entry-content' ".avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$id, 'custom_markup'=>$this->atts['custom_markup'])).">";
    						$output .= $content;
    						$output .= "<span class='portfolio-read-more'><a href='{$link}'>Read More</a></div>";
    

    Please create a change log of these changes in case you update the theme.

    Regards,
    Ismael

    #355308

    Hey Marcelo!

    Open up /enfold/config-templatebuilder/avia-shortcodes/testimonials.php and move lines 393 – 398.

    				$output .= 				"<div class='avia-testimonial-meta-mini'>";
    	if($name)	$output .= 					"<strong  class='avia-testimonial-name'  {$this->title_styling} {$markup_name}>{$name}</strong>";
    if($subtitle)	$output .= 					"<span  class='avia-testimonial-subtitle {$this->subtitle_class}' {$this->title_styling}  {$markup_job}>{$subtitle}</span>";
        if($link)	$output .= 					"<span class='hidden avia-testimonial-markup-link'  {$markup_url}>{$link}</span>";
    	if($link)	$output .= 					" &ndash; <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";
    				$output .= 				"</div>";

    Up so they display on top of this line.

    $output .= 		"<div class='avia-testimonial-content {$this->content_class}'  {$this->content_styling} {$markup_text}>";
    

    And then add this to your custom CSS.

    .avia-testimonial-image { float: right !important; }
    

    Cheers!
    Elliott

    #354376

    Hi!

    It looks like you have this in your style.css file which is hiding it on your homepage.

    #home .slide-meta {
        display: none;
    }

    To move it above the title then open up /enfold/config-templatebuilder/avia-shortcodes/postslider.php and move lines 375 – 388.

    if($show_meta && !empty($excerpt))
    {
    	$output .= "<div class='slide-meta'>";
    	if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    	{
    		$link_add = $commentCount === "0" ? "#respond" : "#comments";
    		$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    		$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    	}
    	$markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    	$output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    	$output .= "</div>";
    }
    

    To line 369 so they display above this.

    $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    $output .= '<header class="entry-content-header">';
    $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';
    $output .= '</header>';
    

    Regards,
    Elliott

    #353177

    Hi qqqq9999!

    1. You can find that link in /enfold/framework/php/function-set-avia-frontend.php on line 499.

    $logo = "<$headline_type class='logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>";
    

    2. You can find that link in /enfold/includes/loop-index.php on line 121.

    $blog_meta_output = "<a href='{$link}' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>";
    

    3. I think your referring to the widget in your single post view. You can find that on line 536 in /enfold/framework/php/class-framework-widgets.php.

    echo "<span class='news-time'>".get_the_time($time_format)."</span>";	
    

    4. This is on line 523 in the same file.

    echo "<a class='news-link' title='".get_the_title()."' href='".$link."'>";
    

    5. Try line 63 in /enfold/includes/helper-post-format.php.

    $output .= "	<a href='".get_permalink()."' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".$current_post['title']."'>".$current_post['title'];
    

    Cheers!
    Elliott

    #349081

    Hey bicounet!

    Try adding this to the functions.php file of your child theme.

    function avia_post_nav($same_category = false, $taxonomy = 'category')
    {
    	global $wp_version;
    		$settings = array();
    		$settings['same_category'] = $same_category;
    		$settings['excluded_terms'] = '';
    		$settings['wpversion'] = $wp_version;
    	
    	//dont display if a fullscreen slider is available since they overlap 
    	if((class_exists('avia_sc_layerslider') && !empty(avia_sc_layerslider::$slide_count)) || 
    		class_exists('avia_sc_slider_full') && !empty(avia_sc_slider_full::$slide_count) ) $settings['is_fullwidth'] = true;
    
    	$settings['type'] = get_post_type();
    	$settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy;
    
    	if(!is_singular() || is_post_type_hierarchical($settings['type'])) $settings['is_hierarchical'] = true;
    	if($settings['type'] === 'topic' || $settings['type'] === 'reply') $settings['is_bbpress'] = true;
    
    		$settings = apply_filters('avia_post_nav_settings', $settings);
    		if(!empty($settings['is_bbpress']) || !empty($settings['is_hierarchical']) || !empty($settings['is_fullwidth'])) return;
    
    		if(version_compare($settings['wpversion'], '3.8', '>=' ))
    		{
    			$entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    			$entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    		}
    		else
    		{
    			$entries['prev'] = get_previous_post($settings['same_category']);
    			$entries['next'] = get_next_post($settings['same_category']);
    		}
    		
    	$entries = apply_filters('avia_post_nav_entries', $entries, $settings);
    	$output = "";
    
    	foreach ($entries as $key => $entry)
    	{
    		if(empty($entry)) continue;
    		$the_title 	= isset($entry->av_custom_title) ? $entry->av_custom_title : avia_backend_truncate(get_the_title($entry->ID),75," ");
    		$link 		= isset($entry->av_custom_link)  ? $entry->av_custom_link  : get_permalink($entry->ID);
    		$image 		= isset($entry->av_custom_image) ? $entry->av_custom_image : get_the_post_thumbnail($entry->ID, 'thumbnail');
    		
    		$tc1   = $tc2 = "";
    		$class = $image ? "with-image" : "without-image";
    
    		$output .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >";
    		$output .= "    <span class='label iconfont' ".av_icon_string($key)."></span>";
    		$output .= "    <span class='entry-info-wrap'>";
    		$output .= "        <span class='entry-info'>";
    		$tc1     = "            <span class='entry-title'>{$the_title}</span>";
    if($image)  $tc2     = "            <span class='entry-image'>{$image}</span>";
    		$output .= $key == 'prev' ?  $tc1.$tc2 : $tc2.$tc1;
    		$output .= "        </span>";
    		$output .= "    </span>";
    		$output .= "</a>";
    	}
    	if ( !in_category( array( 'uncategorized', 'work', 'humor' ) ) ) { return $output; }
    }
    

    And near the bottom of that code you should see this.

    if ( !in_category( array( 'uncategorized', 'work', 'humor' ) ) ) { return $output; }
    

    You can add your category slugs there.

    Or if you do not want to use a child theme then you can find that line on 393 in /enfold/functions-enfold.php.

    Cheers!
    Elliott

    • This reply was modified 11 years, 2 months ago by Elliott.
Viewing 30 results - 151 through 180 (of 247 total)