Viewing 30 results - 61 through 90 (of 247 total)
  • Author
    Search Results
  • #924678

    No, there are two duplicates of each product in the lightbox.

    The lightbox link is created three times per product:

    <li>
    <a href="https://farbencenter.at/wp-content/uploads/2018/03/SC_Haftgrund-pigmentiert_RGB-RZ-1030x871.png" class="av-catalogue-fct-item lightbox-added" style="position: relative; overflow: hidden; display: block;">
    <img src="https://farbencenter.at/wp-content/uploads/2018/03/SC_Haftgrund-pigmentiert_RGB-RZ-180x152.png" title="SIGMA Haftgrund pigmentiert" alt="SIGMA Haftgrund pigmentiert" class="av-catalogue-fct-image" style="">
    <span class="image-overlay overlay-type-image" style="left: -5px; top: 0px; overflow: hidden; display: block; height: 182px; width: 190px;">
    <span class="image-overlay-inside">
    </span>
    </span>
    </a>
    <div class="av-catalogue-fct-item-inner">
    <a href="https://farbencenter.at/wp-content/uploads/2018/03/SC_Haftgrund-pigmentiert_RGB-RZ-1030x871.png" class="av-catalogue-fct-item lightbox-added">
    <div class="av-catalogue-fct-title-container"><div class="av-catalogue-fct-title"><h4>SIGMA Haftgrund pigmentiert</h4></div><div class="av-catalogue-h2o"></div></div>
    <div class="av-catalogue-fct-content">
    Weiß pigmentierte, wasserverdünnbare Universal-Grundierung.<p></p>
    <ul>
    <li>haftvermittelnd</li>
    <li>verlängert die Offenzeit der Schlussbeschichtung</li>
    <li>niedrige Wasserdurchlässigkeit</li>
    <li>gute Wasserdampfdurchlässigkeit</li>
    <li>ohne strukturgebendes Korn</li>
    <li>tönbar über SIGMA Mix-System</li>
    <li>airless-spritzbar</li>
    </ul>
    </div>
    </a>
    <div class="av-catalogue-fct-pdflink">
    <a href="https://farbencenter.at/wp-content/uploads/2018/03/SC_Haftgrund-pigmentiert_RGB-RZ-1030x871.png" class="av-catalogue-fct-item lightbox-added">
    </a>
    <a class="prettylink pdf" target="_blank" href="index.php?file_download=file&userid=PUBLIC&filepath=%2FTM%2FSIGMA%20Coatings%2FTM-SIGMA-Haftgrund-pigmentiert.pdf"><span style="float:right"></span>Technisches Merkblatt</a></div>
    <div class="av-catalogue-fct-pdflink">
    <a class="prettylink pdf" target="_blank" href="index.php?file_download=file&userid=PUBLIC&filepath=%2FTM%2FSIGMA%20Coatings%2FSDB-SIGMA-Haftgrund-pigmentiert.pdf"><span style="float:right"></span>Sicherheitsdatenblatt</a></div>
    </div>
    </li>

    I duplicated the avia-catalogue item, the only code that is related to the lightbox is this:

    if($link)
    				{
    					if($link == 'lightbox' && $id)
    					{
    						$link 	= aviaHelper::get_url($link, $id);
    					}
    					else
    					{
    						$link 	= aviaHelper::get_url($link);
    						$blank = (strpos($target, '_blank') !== false || $target == 'yes') ? ' target="_blank" ' : "";
    						$blank .= strpos($target, 'nofollow') !== false ? ' rel="nofollow" ' : "";
    					}
    					
    					$item_markup = array("open"=>"a href='{$link}' {$blank}", "close" => "a");
    				}

    I’m baffled, don’t know how to get rid of the additional lightbox-links. I know this makes the whole element clickable to get a bigger version of the product image, but it’d be enough to have only the thumbnail link to the bigger version of the image.

    #920450

    Topic: Countdown language

    in forum Enfold
    pddcoms
    Participant

    Most popular question)) How to change lenguage? As you can see i changed lines in file countdown php
    Maybe something wrong?

    <?php
    /**
    * Animated Countdown
    *
    * Display Numbers that count from 0 to a specific date
    */
    if ( ! defined( ‘ABSPATH’ ) ) { exit; } // Exit if accessed directly

    if ( !class_exists( ‘avia_sc_countdown’ ) )
    {

    class avia_sc_countdown extends aviaShortcodeTemplate
    {
    /**
    * Create the config array for the shortcode button
    */
    function shortcode_insert_button()
    {
    $this->config[‘self_closing’] = ‘yes’;

    $this->config[‘name’] = __(‘Animated Countdown’, ‘avia_framework’ );
    $this->config[‘tab’] = __(‘Content Elements’, ‘avia_framework’ );
    $this->config[‘icon’] = AviaBuilder::$path[‘imagesURL’].”sc-countdown.png”;
    $this->config[‘order’] = 14;
    $this->config[‘target’] = ‘avia-target-insert’;
    $this->config[‘shortcode’] = ‘av_countdown’;
    $this->config[‘tooltip’] = __(‘Display a countdown to a specific date’, ‘avia_framework’ );
    $this->config[‘preview’] = “xlarge”;
    $this->time_array = array(
    __(‘Секунда’, ‘avia_framework’ ) =>’1′,
    __(‘Минута’, ‘avia_framework’ ) =>’2′,
    __(‘Час’, ‘avia_framework’ ) =>’3′,
    __(‘День’, ‘avia_framework’ ) =>’4′,
    __(‘Неделя’, ‘avia_framework’ ) =>’5′,
    /*
    __(‘Месяц’, ‘avia_framework’ ) =>’6′,
    __(‘Год’, ‘avia_framework’ ) =>’7′
    */
    );
    }

    function extra_assets()
    {
    //load css
    wp_enqueue_style( ‘avia-module-countdown’ , AviaBuilder::$path[‘pluginUrlRoot’].’avia-shortcodes/countdown/countdown.css’ , array(‘avia-layout’), false );

    //load js
    wp_enqueue_script( ‘avia-module-countdown’ , AviaBuilder::$path[‘pluginUrlRoot’].’avia-shortcodes/countdown/countdown.js’ , array(‘avia-shortcodes’), false, TRUE );
    }

    /**
    * Popup Elements
    *
    * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
    * opens a modal window that allows to edit the element properties
    *
    * @return void
    */
    function popup_elements()
    {
    $this->elements = array(
    array(
    “type” => “tab_container”, ‘nodescription’ => true
    ),

    array(
    “type” => “tab”,
    “name” => __(“Content” , ‘avia_framework’),
    ‘nodescription’ => true
    ),

    array(
    “name” => __(“Date”,’avia_framework’ ),
    “desc” => __(“Pick a date in the future.”,’avia_framework’ ),
    “id” => “date”,
    “type” => “datepicker”,
    “container_class” => ‘av_third av_third_first’,
    “std” => “”),

    array(
    “name” => __(“Hour”, ‘avia_framework’ ),
    “desc” => __(“Pick the hour of the day”, ‘avia_framework’ ),
    “id” => “hour”,
    “type” => “select”,
    “std” => “12”,
    “container_class” => ‘av_third’,
    “subtype” => AviaHtmlHelper::number_array(0,23,1,array(),’ h’)),

    array(
    “name” => __(“Minute”, ‘avia_framework’ ),
    “desc” => __(“Pick the minute of the hour”, ‘avia_framework’ ),
    “id” => “minute”,
    “type” => “select”,
    “std” => “0”,
    “container_class” => ‘av_third’,
    “subtype” => AviaHtmlHelper::number_array(0,59,1,array(),’ min’)),

    array(
    “name” => __(“Smallest time unit”, ‘avia_framework’ ),
    “desc” => __(“The smallest unit that will be displayed”, ‘avia_framework’ ),
    “id” => “min”,
    “type” => “select”,
    “std” => “1”,
    “subtype” => $this->time_array),

    array(
    “name” => __(“Largest time unit”, ‘avia_framework’ ),
    “desc” => __(“The largest unit that will be displayed”, ‘avia_framework’ ),
    “id” => “max”,
    “type” => “select”,
    “std” => “5”,
    “subtype” => $this->time_array),

    array(
    “name” => __(“Text Alignment”, ‘avia_framework’ ),
    “desc” => __(“Choose here, how to align your text”, ‘avia_framework’ ),
    “id” => “align”,
    “type” => “select”,
    “std” => “center”,
    “subtype” => array(
    __(‘Center’, ‘avia_framework’ ) =>’av-align-center’,
    __(‘Right’, ‘avia_framework’ ) =>’av-align-right’,
    __(‘Left’, ‘avia_framework’ ) =>’av-align-left’,
    )
    ),

    array( “name” => __(“Number Font Size”, ‘avia_framework’ ),
    “desc” => __(“Size of your numbers in Pixel”, ‘avia_framework’ ),
    “id” => “size”,
    “type” => “select”,
    “subtype” => AviaHtmlHelper::number_array(20,90,1, array( __(“Default Size”, ‘avia_framework’ )=>”)),
    “std” => “”),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    array(
    “type” => “tab”,
    “name” => __(“Colors”,’avia_framework’ ),
    ‘nodescription’ => true
    ),

    array(
    “name” => __(“Colors”, ‘avia_framework’ ),
    “desc” => __(“Choose the colors here”, ‘avia_framework’ ),
    “id” => “style”,
    “type” => “select”,
    “std” => “center”,
    “subtype” => array(
    __(‘Default’, ‘avia_framework’ ) =>’av-default-style’,
    __(‘Theme colors’, ‘avia_framework’ ) =>’av-colored-style’,
    __(‘Transparent Light’, ‘avia_framework’ ) =>’av-trans-light-style’,
    __(‘Transparent Dark’, ‘avia_framework’ ) =>’av-trans-dark-style’,
    )
    ),
    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    array(
    “type” => “tab”,
    “name” => __(“Screen Options”,’avia_framework’ ),
    ‘nodescription’ => true
    ),

    array(
    “name” => __(“Element Visibility”,’avia_framework’ ),
    “desc” => __(“Set the visibility for this element, based on the device screensize.”, ‘avia_framework’ ),
    “type” => “heading”,
    “description_class” => “av-builder-note av-neutral”,
    ),

    array(
    “desc” => __(“Hide on large screens (wider than 990px – eg: Desktop)”, ‘avia_framework’),
    “id” => “av-desktop-hide”,
    “std” => “”,
    “container_class” => ‘av-multi-checkbox’,
    “type” => “checkbox”),

    array(

    “desc” => __(“Hide on medium sized screens (between 768px and 989px – eg: Tablet Landscape)”, ‘avia_framework’),
    “id” => “av-medium-hide”,
    “std” => “”,
    “container_class” => ‘av-multi-checkbox’,
    “type” => “checkbox”),

    array(

    “desc” => __(“Hide on small screens (between 480px and 767px – eg: Tablet Portrait)”, ‘avia_framework’),
    “id” => “av-small-hide”,
    “std” => “”,
    “container_class” => ‘av-multi-checkbox’,
    “type” => “checkbox”),

    array(

    “desc” => __(“Hide on very small screens (smaller than 479px – eg: Smartphone Portrait)”, ‘avia_framework’),
    “id” => “av-mini-hide”,
    “std” => “”,
    “container_class” => ‘av-multi-checkbox’,
    “type” => “checkbox”),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    array(
    “name” => __(“Number Font Size”,’avia_framework’ ),
    “desc” => __(“Set the font size for the number, based on the device screensize.”, ‘avia_framework’ ),
    “type” => “heading”,
    “description_class” => “av-builder-note av-neutral”,
    ),

    array( “name” => __(“Font Size for medium sized screens (between 768px and 989px – eg: Tablet Landscape)”, ‘avia_framework’ ),
    “id” => “av-medium-font-size-title”,
    “type” => “select”,
    “subtype” => AviaHtmlHelper::number_array(10,60,1, array( __(“Default”, ‘avia_framework’ )=>” , __(“Hidden”, ‘avia_framework’ )=>’hidden’ ), “px”),
    “std” => “”),

    array( “name” => __(“Font Size for small screens (between 480px and 767px – eg: Tablet Portrait)”, ‘avia_framework’ ),
    “id” => “av-small-font-size-title”,
    “type” => “select”,
    “subtype” => AviaHtmlHelper::number_array(10,60,1, array( __(“Default”, ‘avia_framework’ )=>”, __(“Hidden”, ‘avia_framework’ )=>’hidden’), “px”),
    “std” => “”),

    array( “name” => __(“Font Size for very small screens (smaller than 479px – eg: Smartphone Portrait)”, ‘avia_framework’ ),
    “id” => “av-mini-font-size-title”,
    “type” => “select”,
    “subtype” => AviaHtmlHelper::number_array(10,60,1, array( __(“Default”, ‘avia_framework’ )=>”, __(“Hidden”, ‘avia_framework’ )=>’hidden’), “px”),
    “std” => “”),

    array(
    “name” => __(“Text Font Size”,’avia_framework’ ),
    “desc” => __(“Set the font size for the text, based on the device screensize.”, ‘avia_framework’ ),
    “type” => “heading”,
    “description_class” => “av-builder-note av-neutral”,
    ),

    array( “name” => __(“Font Size for medium sized screens (between 768px and 989px – eg: Tablet Landscape)”, ‘avia_framework’ ),
    “id” => “av-medium-font-size”,
    “type” => “select”,
    “subtype” => AviaHtmlHelper::number_array(10,60,1, array( __(“Default”, ‘avia_framework’ )=>”, __(“Hidden”, ‘avia_framework’ )=>’hidden’), “px”),
    “std” => “”),

    array( “name” => __(“Font Size for small screens (between 480px and 767px – eg: Tablet Portrait)”, ‘avia_framework’ ),
    “id” => “av-small-font-size”,
    “type” => “select”,
    “subtype” => AviaHtmlHelper::number_array(10,60,1, array( __(“Default”, ‘avia_framework’ )=>”, __(“Hidden”, ‘avia_framework’ )=>’hidden’), “px”),
    “std” => “”),

    array( “name” => __(“Font Size for very small screens (smaller than 479px – eg: Smartphone Portrait)”, ‘avia_framework’ ),
    “id” => “av-mini-font-size”,
    “type” => “select”,
    “subtype” => AviaHtmlHelper::number_array(10,60,1, array( __(“Default”, ‘avia_framework’ )=>”, __(“Hidden”, ‘avia_framework’ )=>’hidden’), “px”),
    “std” => “”),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),
    );

    }

    /**
    * Frontend Shortcode Handler
    *
    * @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 shortcode_handler($atts, $content = “”, $shortcodename = “”, $meta = “”)
    {
    extract(AviaHelper::av_mobile_sizes($atts)); //return $av_font_classes, $av_title_font_classes and $av_display_classes
    extract(shortcode_atts(array( ‘date’ => ”,
    ‘hour’ => ’12’,
    ‘minute’ => ‘0’,
    ‘min’ => ‘1’,
    ‘max’ => ‘5’,
    ‘align’ => ‘center’,
    ‘size’ => ”,
    ‘style’ => ‘av-default-style’,
    ‘link’ => ”,
    ‘title’ => ”
    )
    , $atts));

    $this->full_time_array = array(

    1 => array(“interval” => 1000 , ‘class’=>’seconds’, ‘label’ => __(‘Секунда’, ‘avia_framework’ ), ‘label_multi’ => __(‘Секунды’, ‘avia_framework’)),
    2 => array(“interval” => 60000 , ‘class’=>’minutes’, ‘label’ => __(‘Минута’, ‘avia_framework’ ), ‘label_multi’ => __(‘Минуты’, ‘avia_framework’)),
    3 => array(“interval” => 3600000 , ‘class’=>’hours’, ‘label’ => __(‘Час’, ‘avia_framework’), ‘label_multi’ => __(‘Часы’, ‘avia_framework’)),
    4 => array(“interval” => 86400000 , ‘class’=>’days’, ‘label’ => __(‘День’, ‘avia_framework’ ), ‘label_multi’ => __(‘Дней’, ‘avia_framework’)),
    5 => array(“interval” => 604800000 , ‘class’=>’weeks’, ‘label’ => __(‘Неделя’, ‘avia_framework’ ), ‘label_multi’ => __(‘Недель’, ‘avia_framework’)),
    6 => array(“interval” => 2678400000 , ‘class’=>’months’, ‘label’ => __(‘Месяц’, ‘avia_framework’ ), ‘label_multi’ => __(‘Месяцев’, ‘avia_framework’)),
    7 => array(“interval” => 31536000000 , ‘class’=>’years’, ‘label’ => __(‘Год’, ‘avia_framework’ ), ‘label_multi’ => __(‘Лет’, ‘avia_framework’))

    );

    $interval = $this->full_time_array[$min][‘interval’];
    $final_time = “”;
    $output = “”;
    $digit_style= “”;
    $el = isset($meta[‘el_class’]) ? $meta[‘el_class’] : “”;

    if(!empty($date))
    {
    $date = explode(“/”, $date);

    $final_time .= ” data-year='”.$date[2].”‘”;
    $final_time .= ” data-month='”.((int) $date[0] – 1).”‘”;
    $final_time .= ” data-day='”.$date[1].”‘”;
    $final_time .= ” data-hour='”.$hour.”‘”;
    $final_time .= ” data-minute='”.$minute.”‘”;

    if(!empty($size)) $digit_style = “font-size:{$size}px; “;
    $tags = !empty($link) ? array( “a href='{$link}’ “, “a”) : array(‘span’, ‘span’);

    $output .= “<div class=’av-countdown-timer {$av_display_classes} {$align} {$style} {$el}’ {$final_time} data-interval='{$interval}’ data-maximum='{$max}’ >”;

    if( is_array( $title ) && isset( $title[‘top’] ) )
    {
    $output .= “<h3><{$tags[0]} class=’av-countdown-timer-title av-countdown-timer-title-top’>”.$title[‘top’].”</{$tags[1]}></h3>”;
    }

    $output .= “<{$tags[0]} class=’av-countdown-timer-inner’>”;

    foreach(array_reverse($this->time_array) as $key => $number)
    {
    if($number >= $min && $number <= $max)
    {
    $class = $this->full_time_array[$number][‘class’];
    $single = $this->full_time_array[$number][‘label’];
    $multi = $this->full_time_array[$number][‘label_multi’];

    $output .= “<span class=’av-countdown-cell av-countdown-“. $class .”‘>”;
    $output .= “<span class=’av-countdown-cell-inner’>”;

    $output .= “<span class=’av-countdown-time {$av_title_font_classes}’ data-upate-width='{$class}’ style='{$digit_style}’>0</span>”;
    $output .= “<span class=’av-countdown-time-label {$av_font_classes}’ data-label='{$single}’ data-label-multi='{$multi}’>”.$multi.”</span>”;

    $output .= “</span>”;
    $output .= “</span>”;
    }
    }

    $output .= “</{$tags[1]}>”;

    if( is_array( $title ) && isset( $title[‘bottom’] ) )
    {
    $output .= “<h3><{$tags[0]} class=’av-countdown-timer-title av-countdown-timer-title-bottom’>”.$title[‘bottom’].”</{$tags[1]}></h3>”;
    }

    $output .= “</div>”;
    }

    return $output;
    }
    }
    }

    #914969

    Never mind, I figured it out.
    How do I ensure that if I update Enfold that my changes stay?

    I had to update line 511 in postslider.php located in config-templatebuilder>avia_shortcodes

    This is my edited code:

    $output .= $thumbnail ? "<a target='_blank' href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";

    This is the original code:

    $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";

    • This reply was modified 7 years, 10 months ago by jnetsc.
    #913013
    kpenner36
    Participant

    I am wanting “Comment 0 /” not to show when there is 0 comments. I want it blank.

    I tried removing the checkmark from “check to display” Blog Post Comment Count in Blog Layout – Enfold Child Theme Options
    but that did not stop the display of the Blog Post Comment Count when displayed in Grid Block Format

    Here is a screenshot from my site http://screenshot.co/#!/da672a23a5 and I have circled in red the area I want to be made invisible

    I have the postslider.php setup in the Child Theme per another posts instructions, and that is working.
    I believe here is the code that I need to modify, but I don’t know how to modify it.

    Starting from line 604

    if($show_meta && !empty($excerpt))
    {
    $meta = “<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’ );

    $meta .= “<div class=’slide-meta-comments’>{$commentCount} {$text_add}</div><div class=’slide-meta-del’>/</div>”;
    }
    $markup = avia_markup_helper(array(‘context’ => ‘entry_time’,’echo’=>false, ‘id’=>$the_id, ‘custom_markup’=>$custom_markup));
    $meta .= “<time class=’slide-meta-time updated’ $markup>” .get_the_time(get_option(‘date_format’), $the_id).”</time>”;
    $meta .= “</div>”;

    if( strpos($blogstyle, ‘elegant-blog’) === false )
    {
    $output .= $meta;
    $meta = “”;
    }
    }

    • This topic was modified 7 years, 10 months ago by kpenner36.
    #911524

    Hi,

    Thank you for the info.

    We added the modified nav function again in the functions.php file.

    add_filter('avf_template_builder_content', 'avf_template_builder_content_mod_nav');
    function avf_template_builder_content_mod_nav( $content ) {
    	if( is_singular('portfolio') ) {
    		$nav = avia_post_nav_mod(false, 'portfolio_entries');
    		$content = $content . $nav;
    	}
    	return $content;
    }
    
    if(!function_exists('avia_post_nav_mod'))
    {
    	function avia_post_nav_mod($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-mod 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;
    	}
    }

    And added a few css modifications in the style.css file.

    .single-portfolio .avia-post-nav-mod {
        display: block;
        position: relative;
        height: 110px;
        background: #aaa;
        background: rgba(0,0,0,0.1);
        color: #fff;
        padding: 15px;
        text-decoration: none;
        z-index: 501;
        -webkit-transform: translate3d(0,0,0);
    }
    
    .single-portfolio .avia-post-prev {
        left: 0;
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        width: 50%;
        float: left;
    }
    
    .single-portfolio .avia-post-nav {
        display: none;
    }

    Best regards,
    Ismael

    #904560

    Hi,

    Please edit the config-templatebuilder > aviashortcodes > postslider.php file, look for this code around line 586:

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

    Below, add this code:

    						$output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    
    

    Best regards,
    Ismael

    #903802

    In reply to: hn for Content Slider

    Hi allen,

    You can do this by editing this file in the Enfold: enfold > config-templatebuilder > avia-shortcodes > contentslider.php and look for this code (line 475-477):

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

    replace all h3 with other heading tags :)

    Best regards,
    Nikko

    #901230
    spirecomm
    Participant

    I’m trying to use the post slider and blog grid features to display articles on my site.
    When you click on the image or link, instead of going to the post, I want it to go to another link thats specified in a unique advanced custom field for each article. I made a child theme and set up the postslider php file but i cant figure out how to call up the custom field content.

    i found two places that seem to control the link
    $output .= $thumbnail ? “{$thumbnail}” : “”;
    and
    $output .= “<h3 class=’slide-entry-title entry-title’ $markup>“.$title.”</h3>”;

    I thought I would replace the $link text above with something like the_field(‘press_link’);
    but that isnt working

    Also I can see that my edits have an affect on the post slider but is there something more i have to do to get them to affect the blog grid?

    Any help I can get would be incredble!
    I know it would be better for these to be links instead of posts but I’m ultimately going to apply this to existing site that has over 100 of these already built so I’m trying to work with the existing structure

    #901032

    In reply to: Magazine Excerpt

    This reply has been marked as private.
    #898301

    Hi,

    Please add the following code in the functions.php file.

    if(!function_exists('avia_post_nav_mod'))
    {
    	function avia_post_nav_mod($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-mod 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;
    	}
    }

    Edit the includes > loop-portfolio-single.php file, look for this code around line 47.

    echo '</footer>';
    

    Below, add this code:

    echo avia_post_nav_mod(false, 'portfolio_entries');
    

    And then adjust the default style in the Quick CSS field.

    #top .avia-post-nav-mod {
        display: block;
        position: relative;
        height: 110px;
        background: #aaa;
        background: rgba(0,0,0,0.1);
        color: #fff;
        padding: 15px;
        text-decoration: none;
        z-index: 501;
        -webkit-transform: translate3d(0,0,0);
    }
    
    .avia-post-prev {
        left: 0;
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        width: 50%;
        float: left;
    }
    

    This modification should work but it will require a few css adjustments. I’m sure you’ll be able to handle that.

    Best regards,
    Ismael

    #896589

    It works for me (with te theme styling). Add it in functions.php

    /*************************************/
    add_filter( 'avf_template_builder_content', 'enfold_customization_portfolio_nextprev' );
     
      function enfold_customization_portfolio_nextprev( $content )
      {
      	global $wp_version;
    	        $settings = array();
    	        $settings['same_category'] = 'true';
    	        $settings['excluded_terms'] = '';
    			$settings['wpversion'] = $wp_version;
    			$settings['type'] = get_post_type();
    			$settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy;
    
    			 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 = "";
    
      	if ( is_singular( 'portfolio' ) )
        {
        		$entries = apply_filters('avia_post_nav_entries', $entries, $settings);
            	
    
            	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";
    
                $content .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >";
    		    $content .= "    <span class='label iconfont' ".av_icon_string($key)."></span>";
    		    $content .= "    <span class='entry-info-wrap'>";
    		    $content .= "        <span class='entry-info'>";
    		    $tc1     = "            <span class='entry-title'>{$the_title}</span>";
    if($image)  $tc2     = "            <span class='entry-image'>{$image}</span>";
                $content .= $key == 'prev' ?  $tc1.$tc2 : $tc2.$tc1;
                $content .= "        </span>";
                $content .= "    </span>";
    		    $content .= "</a>";
    		}
    
      	return $content;
      	}
        else {
      	return $content;
        }
      }
    #894103
    Guenni007
    Participant

    there is in case of heaving that little round author image on blog listings a backlink to author infos. :

    the infos except the biografie are not alway correct – because portfolio postings of those authers are not in the counter.

    if i have that backlink the infos have to be correct. So on non mobile devices i set the pointer-event to none. – But on ipad etc the click function still gets active.

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";

    or is it possible to get here only the link to the concerning post ( like on featured images)

    #879500

    Hi,

    It’s possible with the custom fields. Edit the post, add a custom field called “custom_image_link” and then add the custom url. In the postslider.php file, look for this code around line 511.

    $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
    

    Replace it with:

    $image_link = get_post_meta($the_id, 'custom_image_link', true );
    					if($format == 'link' && $image_link )
    					{
    						$link = $image_link;
    					}
    					$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
    

    Best regards,
    Ismael

    #846939
    Constanze_Henkel
    Participant

    Hello Kriesi Support team,

    I know that this topic has been discussed quite often. But I don’t want to add a button by copying a button shortcode inside the slider caption. If possible I want to amend and/or edit the necessary files to have the opportunity to choose the number of buttons shown on the fullscreen slideshow in the backend in the caption menu of the fullscreen slider.

    I already amended the config-templatebuilder > avia-shortcodes > slideshow_fullscreen.php file and the config-templatebuilder > avia-shortcodes > av-helper-slideshow.php file, where I found program code for handling the functionality of button 1 and 2.

    What I did for slideshow_fullscreen.php:
    lines 253-264
    array(
    “name” => __(“Apply a link or buttons to the slide?”, ‘avia_framework’ ),
    “desc” => __(“You can choose to apply the link to the whole image or to add ‘Call to Action Buttons’ that get appended to the caption”, ‘avia_framework’ ),
    “id” => “link_apply”,
    “type” => “select”,
    “std” => “”,
    “subtype” => array(
    __(‘No Link for this slide’, ‘avia_framework’ ) =>”,
    __(‘Apply Link to Image’, ‘avia_framework’ ) =>’image’,
    __(‘Attach one button’, ‘avia_framework’ ) =>’button’,
    __(‘Attach two buttons’, ‘avia_framework’ ) =>’button button-two’,
    __(‘Attach three buttons’, ‘avia_framework’ ) =>’button button-three’)),

    I added the last line, for a third button. In my opinion this array contains the options that you can choose. “Choose to apply the link to the whole image or to add ‘Call to Action Buttons’ that get appended to the caption. ”

    Then I added this code snippet, it is the same as for button two, just amended for button three
    lines after code for button 2 lines 425 and following

    array( “name” => __(“Button 3 Label”, ‘avia_framework’ ),
    “desc” => __(“This is the text that appears on your third button.”, ‘avia_framework’ ),
    “id” => “button_label3”,
    “type” => “input”,
    “container_class” => ‘av_half av_half_first’,
    “required”=> array(‘link_apply’,’contains’,’button-three’),
    “std” => “Click me”),

    array(
    “name” => __(“Button 3 Color”, ‘avia_framework’ ),
    “desc” => __(“Choose a color for your third button here”, ‘avia_framework’ ),
    “id” => “button_color3”,
    “type” => “select”,
    “std” => “light”,
    “container_class” => ‘av_half’,
    “required”=> array(‘link_apply’,’contains’,’button-three’),
    “subtype” => array(
    __(‘Translucent Buttons’, ‘avia_framework’ ) => array(
    __(‘Light Transparent’, ‘avia_framework’ )=>’light’,
    __(‘Dark Transparent’, ‘avia_framework’ )=>’dark’,
    ),

    __(‘Colored Buttons’, ‘avia_framework’ ) => array(
    __(‘Theme Color’, ‘avia_framework’ )=>’theme-color’,
    __(‘Theme Color Subtle’, ‘avia_framework’ )=>’theme-color-subtle’,
    __(‘Blue’, ‘avia_framework’ )=>’blue’,
    __(‘Red’, ‘avia_framework’ )=>’red’,
    __(‘Green’, ‘avia_framework’ )=>’green’,
    __(‘Orange’, ‘avia_framework’ )=>’orange’,
    __(‘Aqua’, ‘avia_framework’ )=>’aqua’,
    __(‘Teal’, ‘avia_framework’ )=>’teal’,
    __(‘Purple’, ‘avia_framework’ )=>’purple’,
    __(‘Pink’, ‘avia_framework’ )=>’pink’,
    __(‘Silver’, ‘avia_framework’ )=>’silver’,
    __(‘Grey’, ‘avia_framework’ )=>’grey’,
    __(‘Black’, ‘avia_framework’ )=>’black’,
    )

    )),

    array(
    “name” => __(“Button 3 Link?”, ‘avia_framework’ ),
    “desc” => __(“Where should the Button link to?”, ‘avia_framework’ ),
    “id” => “link3”,
    “container_class” => ‘av_half av_half_first’,
    “required”=> array(‘link_apply’,’contains’,’button-three’),
    “type” => “linkpicker”,
    “fetchTMPL” => true,
    “subtype” => array(
    __(‘Set Manually’, ‘avia_framework’ ) =>’manually’,
    __(‘Single Entry’, ‘avia_framework’ ) => ‘single’,
    __(‘Taxonomy Overview Page’, ‘avia_framework’ ) => ‘taxonomy’,
    ),
    “std” => “”),

    array(
    “name” => __(“Button 3 Link Target?”, ‘avia_framework’ ),
    “desc” => __(“Select here if you want to open the linked page in a new window”, ‘avia_framework’ ),
    “id” => “link_target3”,
    “type” => “select”,
    “std” => “”,
    “container_class” => ‘av_half’,
    “required”=> array(‘link_apply’,’contains’,’button-three’),
    “subtype” => AviaHtmlHelper::linking_options()),

    It was only copy and paste of the code of button two and amending for an additional button (button three)

    What I did for av-helpoer-slideshow.php:

    In the function advanced_slide() I added code for button 3 similar to button 2. The function is not completely show, the rest of the code is not nescessary. In the lines where I changes something I add !!! CHANGES !!!, only in this blog for displaying purposes.

    //function that renders the slides. use when we did use sub-shorcodes to define the images
    protected function advanced_slide()
    {
    $html = “”;
    $counter = 0;
    $this->ie8_fallback = “”;

    foreach($this->id_array as $key => $id)
    {
    $meta = array_merge( array( ‘content’ => $this->subslides[$key][‘content’],
    ‘title’ =>”,
    ‘link_apply’ =>”,
    //direct link from image
    ‘link’ =>”,
    ‘link_target’ =>”,
    //button link 1
    ‘button_label’ =>”,
    ‘button_color’ =>’light’,
    ‘link1’ =>”,
    ‘link_target1’ =>”,
    //button link 2
    ‘button_label2’ =>”,
    ‘button_color2′ =>’light’,
    ‘link2’ =>”,
    ‘link_target2’ =>”,
    //button link 3 !!! CHANGES !!!
    ‘button_label3’ =>”,
    ‘button_color3′ =>’light’,
    ‘link3’ =>”,
    ‘link_target3’ =>”,

    ‘position’ =>’center center’,
    ‘caption_pos’ =>’capt-bottom capt-left’,
    ‘video_cover’ =>”,
    ‘video_controls’=>”,
    ‘video_mute’ =>”,
    ‘video_loop’ =>”,
    ‘video_format’ =>”,
    ‘video_autoplay’=>”,
    ‘video_ratio’ =>’16:9′,
    ‘video_mobile_disabled’=>”,
    ‘video_mobile’ =>’mobile-fallback-image’,
    ‘mobile_image’ => ”,
    ‘slide_type’ =>”,
    ‘custom_markup’ => ”,
    ‘custom_title_size’ => ”,
    ‘custom_content_size’ => ”,
    ‘font_color’ =>”,
    ‘custom_title’ => ”,
    ‘custom_content’ => ”,
    ‘overlay_enable’ => ”,
    ‘overlay_opacity’ => ”,
    ‘overlay_color’ => ”,
    ‘overlay_pattern’ => ”,
    ‘overlay_custom_pattern’ => ”,

    ), $this->subslides[$key][‘attr’]);

    extract($meta);

    if(isset($this->slides[$id]) || $slide_type == ‘video’)
    {
    $img = array(”);
    $slide = “”;
    $attachment_id = isset($this->slides[$id]) ? $id : false;
    $link = AviaHelper::get_url($link, $attachment_id);
    $extra_class = “”;
    $linkdescription= “”;
    $linkalt = “”;
    $this->service = false;
    $slider_data = “”;
    $stretch_height = false;
    $final_ratio = “”;
    $viewport = 16/9;

    $markup_url = avia_markup_helper(array(‘context’ => ‘image_url’,’echo’=>false, ‘id’=>$attachment_id, ‘custom_markup’=>$custom_markup));

    if($slide_type == ‘video’)
    {
    $this->service = avia_slideshow_video_helper::which_video_service($video);
    $video = avia_slideshow_video_helper::set_video_slide($video, $this->service, $meta);
    $video_class = !empty( $video_controls ) ? ” av-hide-video-controls” : “”;
    $video_class .= !empty( $video_mute ) ? ” av-mute-video” : “”;
    $video_class .= !empty( $video_loop ) ? ” av-loop-video” : “”;
    $video_class .= !empty( $video_mobile ) ? ” av-“.$video_mobile : “”;

    $extra_class .= ” av-video-slide “.$video_cover.” av-video-service-“.$this->service.” “.$video_class;
    $slider_data .= ” data-controls='{$video_controls}’ data-mute='{$video_mute}’ data-loop='{$video_loop}’ data-disable-autoplay='{$video_autoplay}’ “;

    if($mobile_image){
    $fallback_img = wp_get_attachment_image_src($mobile_image, $this->config[‘size’]);
    $slider_data .= ” data-mobile-img='”.$fallback_img[0].”‘”;
    }

    //if we dont use a fullscreen slider pass the video ratio to the slider
    if($this->config[‘bg_slider’] != “true”)
    {
    global $avia_config;
    //if we use the small slideshow only allow the “full” $video_format
    if($this->config[‘handle’] == ‘av_slideshow’) $video_format = “full”;

    //calculate the viewport ratio
    if(!empty($avia_config[‘imgSize’][$this->config[‘size’]]))
    {
    $viewport = $avia_config[‘imgSize’][$this->config[‘size’]][‘width’] / $avia_config[‘imgSize’][$this->config[‘size’]][‘height’];
    }

    //calculate the ratio when passed as a string (eg: 16:9, 4:3). fallback is 16:9
    $video_ratio = explode(‘:’,trim($video_ratio));
    if(empty($video_ratio[0])) $video_ratio[0] = 16;
    if(empty($video_ratio[1])) $video_ratio[1] = 9;
    $final_ratio = ((int) $video_ratio[0] / (int) $video_ratio[1]);

    switch($video_format)
    {
    case “”:
    $final_ratio = $viewport;
    break;
    case “stretch”:
    $final_ratio = $viewport;
    $stretch_height = ceil( $viewport / ($video_ratio[0]/$video_ratio[1]) * 100 );
    $stretch_pos = (($stretch_height – 100) / 2) * -1;
    $slider_data .= ” data-video-height='{$stretch_height}'”;
    $slider_data .= ” data-video-toppos='{$stretch_pos}'”;
    $extra_class .= ” av-video-stretch”;
    break;
    case “full”:
    // do nothing and apply the entered ratio
    break;
    }

    $slider_data .= ” data-video-ratio='{$final_ratio}'”;
    }

    }
    else //img slide
    {
    $slide = $this->slides[$id];
    $linktitle = trim($slide->post_title) ? esc_attr($slide->post_title) : “”;
    if($linktitle == “-“) $linktitle = “”;
    $linkdescription = (trim($slide->post_content) && empty($link)) ? “title='”.esc_attr($slide->post_content).”‘” : “”;
    $linkalt = get_post_meta($slide->ID, ‘_wp_attachment_image_alt’, true);
    $linkalt = !empty($linkalt) ? esc_attr($linkalt) : ”;
    $img = wp_get_attachment_image_src($slide->ID, $this->config[‘size’]);
    $video = “”;
    }

    if($this->slide_count === 1) $extra_class .= ” av-single-slide”;

    $blank = (strpos($link_target, ‘_blank’) !== false || $link_target == ‘yes’) ? ‘ target=”_blank” ‘ : “”;
    $blank .= strpos($link_target, ‘nofollow’) !== false ? ‘ rel=”nofollow” ‘ : “”;
    $tags = (!empty($link) && $link_apply == ‘image’) ? array(“a href='{$link}'{$blank}”,’a’) : array(‘div’,’div’);
    $caption = “”;
    $button_html = “”;
    $counter ++;
    $button_count = “”;
    if(strpos($link_apply, ‘button-two’) !== false){$button_count = “avia-multi-slideshow-button”;}
    if(strpos($link_apply, ‘button-three’) !== false){$button_count = “avia-multi-slideshow-button”;} !!!CHANGES !!!

    //if we got a CTA button apply the link to the button istead of the slide
    if(strpos($link_apply, ‘button’) !== false)
    {
    $button_html .= $this->slideshow_cta_button($link1, $link_target1, $button_color, $button_label, $button_count);
    $tags = array(‘div’,’div’);
    }

    if(strpos($link_apply, ‘button-two’) !== false)
    {
    $button_count .= ” avia-slideshow-button-2″;
    $button_html .= $this->slideshow_cta_button($link2, $link_target2, $button_color2, $button_label2, $button_count);
    }

    if(strpos($link_apply, ‘button-three’) !== false) !!!CHANGES !!!!
    {
    $button_count .= ” avia-slideshow-button-3″;
    $button_html .= $this->slideshow_cta_button($link3, $link_target3, $button_color3, $button_label3, $button_count);

    But all of these amendment have no effect in the backend. There is no new choise for a third button provided.
    I don’t know so well all files and the code of the enfold theme. Do you know other files which have to be amended to get the possibility of adding an additional button.
    I don’t need a customization of you, just the help to find the places where I have to amend. The rest I can, hopefully, figure out by myself.

    Thank for your support.

    By the way, I could not find a previous post about this topic, if there is any and I missed it, sorry for asking again.

    Best, Constanze

    #840004
    JenToronto
    Participant

    I’ve got a custom element in the Avia Layout Builder that I’m needing to add link text to.
    Meaning that every time a link is added, I’d like “Know More” text to display under the description.
    Can anyone give me a hand?
    Thanks!!
    The current code for the custom block is:

    <?php
    
    /**
     * Slider
     * Shortcode that allows to slide some content
     */
    if (!class_exists('avia_sc_offerings_blocks')) {
    
        class avia_sc_offerings_blocks extends aviaShortcodeTemplate {
    
            /**
             * Create the config array for the shortcode button
             */
            function shortcode_insert_button() {
                $this->config['name'] = __('Offerings Block', 'avia_framework');
                $this->config['tab'] = __('Custom Blocks', 'avia_framework');
                $this->config['icon'] = AviaBuilder::$path['imagesURL'] . "sc-contentslider.png";
                $this->config['order'] = 83;
                $this->config['target'] = 'avia-target-insert';
                $this->config['shortcode'] = 'av_offerings_block';
                $this->config['shortcode_nested'] = array('avia_offerings_block');
                $this->config['tooltip'] = __('Display a content slider element', 'avia_framework');
            }
    
            /**
             * Popup Elements
             *
             * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
             * opens a modal window that allows to edit the element properties
             *
             * @return void
             */
            function popup_elements() {
                $this->elements = array(
                    array(
                        "type" => "tab_container", 'nodescription' => true
                    ),
                    array(
                        "type" => "tab",
                        "name" => __("Content", 'avia_framework'),
                        'nodescription' => true
                    ),
                    array(
                        "name" => __("Add/Edit Blocks", 'avia_framework'),
                        "desc" => __("Here you can add, remove and edit the blocks you want to display.", 'avia_framework'),
                        "type" => "modal_group",
                        "id" => "content",
                        "modal_title" => __("Edit Form Element", 'avia_framework'),
                        "std" => array(
                            array('title' => __('Block 1', 'avia_framework'), 'tags' => '')
                        ),
                        'subelements' => array(
                            array(
                                "name" => __("Block Title", 'avia_framework'),
                                "desc" => __("Enter the block title here (Better keep it short)", 'avia_framework'),
                                "id" => "title",
                                "std" => "Block Title",
                                "type" => "input"),
                            array(
                                "name" => __("Title Link?", 'avia_framework'),
                                "desc" => __("Where should your title link to?", 'avia_framework'),
                                "id" => "link",
                                "type" => "linkpicker",
                                "fetchTMPL" => true,
                                "std" => "",
                                "subtype" => array(
                                    __('No Link', 'avia_framework') => '',
                                    __('Set Manually', 'avia_framework') => 'manually',
                                    __('Single Entry', 'avia_framework') => 'single',
                                    __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy',
                                ),
                                "std" => ""),
                            array(
                                "name" => __("Open in new window", 'avia_framework'),
                                "desc" => __("Do you want to open the link in a new window", 'avia_framework'),
                                "id" => "linktarget",
                                "required" => array('link', 'not', ''),
                                "type" => "select",
                                "std" => "",
                                "subtype" => AviaHtmlHelper::linking_options()),
                            array(
                                "name" 	=> __("Description",'avia_framework' ),
                                "desc" 	=> __("Enter description",'avia_framework' ),
                                "id" 	=> "content",
                                "type" 	=> "textarea",
                                "std" 	=> ""
                                ),
                            array(
                                "name" => __("Choose Image", 'avia_framework'),
                                "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework'),
                                "id" => "src",
                                "type" => "image",
                                "title" => __("Insert Image", 'avia_framework'),
                                "button" => __("Insert", 'avia_framework'),
                                "std" => AviaBuilder::$path['imagesURL'] . "placeholder.jpg"),
                        )
                    ),
                    array(
                        "name" => __("Heading", 'avia_framework'),
                        "desc" => __("Do you want to display a heading above the images?", 'avia_framework'),
                        "id" => "heading",
                        "type" => "input",
                        "std" => "",
                    ),
                    array(
                        "name" => __("CSS ID", 'avia_framework'),
                        "desc" => __("Custom ID for the block container", 'avia_framework'),
                        "id" => "css_id",
                        "type" => "input",
                        "std" => "",
                    ),
                    array(
                        "name" => __("CSS Class", 'avia_framework'),
                        "desc" => __("Custom Class for the block container", 'avia_framework'),
                        "id" => "css_class",
                        "type" => "input",
                        "std" => "",
                    ),
                    array(
                        "type" => "close_div",
                        'nodescription' => true
                    ),
                    array(
                        "type" => "tab",
                        "name" => __("Colors", 'avia_framework'),
                        'nodescription' => true
                    ),
                    array(
                        "name" => __("Font Colors", 'avia_framework'),
                        "desc" => __("Either use the themes default colors or apply some custom ones", 'avia_framework'),
                        "id" => "font_color",
                        "type" => "select",
                        "std" => "",
                        "subtype" => array(__('Default', 'avia_framework') => '',
                            __('Define Custom Colors', 'avia_framework') => 'custom'),
                    ),
                    array(
                        "name" => __("Custom Font Color", 'avia_framework'),
                        "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'),
                        "id" => "color",
                        "type" => "colorpicker",
                        "std" => "",
                        "container_class" => 'av_half av_half_first',
                        "required" => array('font_color', 'equals', 'custom')
                    ),
                    array(
                        "type" => "close_div",
                        'nodescription' => true
                    ),
                    array(
                        "type" => "close_div",
                        'nodescription' => true
                    ),
                );
            }
    
            /**
             * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
             * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
             * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
             *
             *
             * @param array $params this array holds the default values for $content and $args.
             * @return $params the return array usually holds an innerHtml key that holds item specific markup.
             */
            function editor_element($params) {
                $heading = "";
                $template = $this->update_template("heading", " - <strong>{{heading}}</strong>");
                if (!empty($params['args']['heading']))
                    $heading = "- <strong>" . $params['args']['heading'] . "</strong>";
    
                $params['innerHtml'] = "<img src='" . $this->config['icon'] . "' title='" . $this->config['name'] . "' />";
                $params['innerHtml'].= "<div class='avia-element-label'>" . $this->config['name'] . "</div>";
                $params['innerHtml'].= "<div class='avia-element-label' {$template}>" . $heading . "</div>";
                return $params;
            }
    
            /**
             * Editor Sub Element - this function defines the visual appearance of an element that is displayed within a modal window and on click opens its own modal window
             * Works in the same way as Editor Element
             * @param array $params this array holds the default values for $content and $args.
             * @return $params the return array usually holds an innerHtml key that holds item specific markup.
             */
            function editor_sub_element($params) {
                $template = $this->update_template("title", "{{title}}");
    
                $params['innerHtml'] = "";
                $params['innerHtml'] .= "<div class='avia_title_container' {$template}>" . $params['args']['title'] . "</div>";
    
                return $params;
            }
    
            /**
             * Frontend Shortcode Handler
             *
             * @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 shortcode_handler($atts, $content = "", $shortcodename = "", $meta = "") {
    
                $atts = shortcode_atts(array(
                    'type' => 'slider',
                    'autoplay' => 'false',
                    'animation' => 'fade',
                    'interval' => 5,
                    'navigation' => 'arrows',
                    'heading' => '',
                    'columns' => 3,
                    "css_id" => "",
                    "css_class" => "",
                    'handle' => $shortcodename,
                    'content' => ShortcodeHelper::shortcode2array($content, 1),
                    'class' => $meta['el_class'],
                    'custom_markup' => $meta['custom_markup'],
                    'font_color' => '',
                    'color' => '',
                    'styling' => ''
                        ), $atts, $this->config['shortcode']);
    
                if ($atts['font_color'] == "custom") {
                    $atts['class'] .= " av_inherit_color";
                    $atts['styling'] .=!empty($atts['color']) ? " color:" . $atts['color'] . "; " : "";
                    if ($atts['styling'])
                        $atts['styling'] = " style='" . $atts['styling'] . "'";
                }
    
                $slider = new avia_offerings_block($atts);
                return $slider->html();
            }
    
        }
    
    }
    
    if (!class_exists('avia_offerings_block')) {
    
        class avia_offerings_block {
    
            static $slider = 0;     //slider count for the current page
            protected $config;      //base config set on initialization
    
            function __construct($config) {
                global $avia_config;
                $output = "";
    
                $this->config = array_merge(array(
                    'type' => 'grid',
                    'autoplay' => 'false',
                    'animation' => 'fade',
                    'handle' => '',
                    'heading' => '',
                    'navigation' => 'arrows',
                    'columns' => 3,
                    'interval' => 5,
                    'class' => "",
                    'custom_markup' => "",
                    'css_id' => "",
                    'css_class' => "",
                    'content' => array(),
                    'styling' => ""
                        ), $config);
            }
    
            public function html() {
                $output = "";
                $counter = 0;
                avia_offerings_block::$slider++;
                if (empty($this->config['content']))
                    return $output;
    
                //$html .= empty($this->subslides) ? $this->default_slide() : $this->advanced_slide();
    
                extract($this->config);
    
                $columns = 3;
                $extraClass = 'first';
                $slide_loop_count = 1;
                $loop_counter = 1;
                $total = $columns % 2 ? "odd" : "even";
                $heading = !empty($this->config['heading']) ? '<h2>' . $this->config['heading'] . '</h2>' : "&nbsp;";
                $slide_count = count($content);
                $grid = 'av_one_fifth';
    
                $data = AviaHelper::create_data_string(array('autoplay' => $autoplay, 'interval' => $interval, 'animation' => $animation, 'show_slide_delay' => 30));
    
                $id = 'id="'.$css_id.'"';
                $thumb_fallback = "";
                $output .= "<div  {$id} class='{$css_class} col-centered offerings custom-block' {$styling}>";
    
                $heading_class = '';
                if ($navigation == 'no')
                    $heading_class .= ' no-content-slider-navigation ';
                if ($heading == '&nbsp;')
                    $heading_class .= ' no-content-slider-heading ';
    
                $output .= "<div class='avia-smallarrow-slider-heading $heading_class'>";
                $output .= "<div class='new-special-heading'>" . $heading . "</div>";
                $output .= "</div>";
    
                $output .= "<div class='avia-content-slider-inner'>";
    
                foreach ($content as $key => $value) {
                    $link = $linktarget = "";
    
                    extract($value['attr']);
    
                    $link = aviaHelper::get_url($link);
                    $blank = (strpos($linktarget, '_blank') !== false || $linktarget == 'yes') ? ' target="_blank" ' : "";
                    $blank .= strpos($linktarget, 'nofollow') !== false ? ' rel="nofollow" ' : "";
    
                    $parity = $loop_counter % 2 ? 'odd' : 'even';
                    $last = $slide_count == $slide_loop_count ? " post-entry-last " : "";
                    $post_class = "post-entry slide-entry-overview slide-loop-{$slide_loop_count} slide-parity-{$parity} {$last}";
    
                    if ($loop_counter == 1)
                        $output .= "<div class='block-entry-wrap col-centered'>";
    
                    $markup = avia_markup_helper(array('context' => 'entry', 'echo' => false, 'custom_markup' => $custom_markup));
                    $output .= "<section class='flex_column av_one_third col-centered {$post_class} {$grid} {$extraClass}' $markup>";
    
                    $markup = avia_markup_helper(array('context' => 'entry_title', 'echo' => false, 'custom_markup' => $custom_markup));
                    if(!empty($src)){
                        $img = "<img src='".$src."' alt='" . esc_attr($title) . "'  />";
                    } else {
                        $img = "<img src='".AviaBuilder::$path['imagesURL'] . "placeholder.jpg"."' alt='" . esc_attr($title) . "'  />";
                    }
                    if(!empty($link)){
                        $output .= "<a href='{$link}' $blank title='" . esc_attr($title) . "'>"."<div class='avia_image_container'>{$img}</div>"."</a>";
                    } else {
                        $output .= "<div class='avia_image_container'>{$img}</div>";
                    }
                    $output .=!empty($title) ? "<h3 class='slide-entry-title entry-title' $markup>" : '';
                    $output .= (!empty($link) && !empty($title)) ? "<a href='{$link}' $blank title='" . esc_attr($title) . "'>" . $title . "</a>" : $title;
                    $output .=!empty($title) ? '</h3>' : '';
    
                    $markup = avia_markup_helper(array('context' => 'entry_content', 'echo' => false, 'custom_markup' => $custom_markup));
                    $output .=!empty($value['content']) ? "<div class='slide-entry-excerpt entry-content' $markup>" . ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($value['content'])) . "</div>" : "";
    
                    $output .= '</section>';
    
                    $loop_counter ++;
                    $slide_loop_count ++;
                    $extraClass = "";
    
                    if ($loop_counter > $columns) {
                        $loop_counter = 1;
                        $extraClass = 'first';
                    }
    
                    if ($loop_counter == 1 || !empty($last)) {
                        $output .="</div>";
                    }
                }
    
                $output .= "</div>";
    
                $output .= "</div>";
    
                return $output;
            }
        }
    
    }

    Thanks!

    #829948

    Hey Karl,

    You would need to modify image.php in enfold/config-templatebuilder/avia-shortcodes/ folder (if you use a child theme, I suggest following the instructions here: http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/ ). Find this line of code (line 498):

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

    replace it with:

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

    Hope this helps :)

    Best regards,
    Nikko

    #816601

    Hi,

    Thank you for the update. Please edit link 522.

    $output .= "<a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a>";
    

    Replace it with:

    $output .= "<a class='{$custom_link_class}' href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a>";
    

    Best regards,
    Ismael

    #815430

    Hey geekster31,
    Please go to Enfold/config-templatebuilder/avia-shortcodes folder and open postslider.php file and find following line

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

    and change h3 tags as needed

    Best regards,
    Mike

    #815269

    Hi,

    I didn’t notice that you duplicated the “portfolio” shortcode. I deleted the “ORIG_portfolio.php” file and modified the original portfolio.php file a bit. Please remove browser cache or hard refresh before checking the page.

    Note for moderators:

     if(!empty($title_link))
                            {
                            	$output .= "<a href='{$title_link}' title='".esc_attr(strip_tags($title))."'>".$title."</a>";
                            }
                            else
                            {
                            	$output .= "".$title."";
                            }
    
    

    .. replaced with:

      if(!empty($title_link))
                            {
                            	$output .= "<a href='{$title_link}' title='".esc_attr(strip_tags($title))."'>".$title."</a>";
                            }
                            else
                            {
                            	$output .= "<a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a>";
                            }
    
    

    Best regards,
    Ismael

    #804812

    Hey Susanne,

    Try to edit loop-index.php in wp-content\themes\enfold\includes\ and find this code (line 138):

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";

    and replace it with:

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a><h5 class='author-name'>" . get_the_author() . "</h5>";

    Hope this helps :)

    Best regards,
    Nikko

    #779578

    Why do I need clickable columns? Many of my client designs call for clickable containers that do not have an image and many clients do not have the knowledge to write the html or edit it and rather use a page builder element. Other Enfold forum users have the same need.

    Clickable columns work fine if I override columns.php in a child theme, but I don’t want to break a site if columns.php is updated on the parent side. By adding a new clickable columns tab, this way the only element that would break are clickable columns not every column in the entire site.

    Here is the pastebin: https://pastebin.com/NPH0MEcM

    However, I only changed the class name, $atts and this code:

    // Linkable columns
    				$link = $atts['link'];
    				$linktarget = $atts['linktarget'];
    				
    				$blank = (strpos($linktarget, '_blank') !== false || $linktarget == 'yes') ? ' target="_blank" ' : "";
    				$blank .= strpos($linktarget, 'nofollow') !== false ? ' rel="nofollow" ' : "";
    
    				$link = aviaHelper::get_url($link);
    
    				$tag = !empty($link) ? array("a href='{$link}' {$blank} ",'a') : array('div','div');
    				
    				$output  .= '<'.$tag[0].' class="flex_column '.$shortcodename.' '.$extraClass.' '.$first.' '.$meta['el_class'].' '.avia_sc_columns_linkable::$extraClass.' linkable-column" '.$outer_style.'>';
    			
    				//if the user uses the column shortcode without the layout builder make sure that paragraphs are applied to the text
    				$content =  (empty($avia_config['conditionals']['is_builder_template'])) ? ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content)) : ShortcodeHelper::avia_remove_autop($content, true);				
    
    				$output .= trim($content).'</'.$tag[1].'>';	
    #762766

    Hey pmwarman,

    To remove this default image, go to the includes/ loop-index.php (don`t forget that is necessary to use it in the Theme Child) and delete this code at 122 to 147 line:

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

    Let me know if it works :)

    Best regards,
    John Torvik

    Below Code i replaced

    
    
    if(!function_exists('avia_post_nav'))
    {
    	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>";
    		}
    		return $output;
    	}
    }
    

    Hi,

    You can try just comment the post_nav function at the functions-enfold.php in line 444 to 506. To facilitate, replace the code by this:

    
    /*if(!function_exists('avia_post_nav'))
    {
    	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>";
    		}
    		return $output;
    	}
    }
    */
    
    

    Let me know if it works :)

    Best regards,
    John Torvik

    #760875

    hm i changed it in image.php to: (from line 437)

    $markup_url = avia_markup_helper(array('context' => 'image_url','echo'=>false, 'custom_markup'=>$meta['custom_markup']));
    $markup = avia_markup_helper(array('context' => 'image','echo'=>false, 'custom_markup'=>$meta['custom_markup']));
    
    $output .= "<div class='avia-image-container {$class} ".$meta['el_class']." ".$this->class_by_arguments('align' ,$atts, true)."' $markup >";
    $output .= "<div class='avia-image-container-inner'>";
    if($link)
    {
    	$output.= "<a href='{$link}' class='avia_image'  {$blank}>{$overlay}<img class='avia_image ".$meta['el_class']." ' src='{$src}' alt='{$alt}' title='{$title}' $markup_url /></a>";
    }
    else
    {
    	$output.= "{$overlay}<img class='avia_image ".$meta['el_class']." ' src='{$src}' alt='{$alt}' title='{$title}'  $markup_url />";
    }
    $output .= "</div>";
    $output .= "</div>";
    }

    you can see result here: https://webers-testseite.de/kokon/3164-2/

    this is an image alb element in a 1/2 container.
    The plugin (svg support) – if it comes to an img tag with class style-svg it replaces the whole img container with the svg code ! nice !

    Also this is the code in the postslider.php file

    if($show_meta && !empty($excerpt))
    {
    $meta = “<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’ );

    // $meta .= “<div class=’slide-meta-comments’>{$commentCount} {$text_add}</div><div class=’slide-meta-del’>/</div>”;
    }
    $markup = avia_markup_helper(array(‘context’ => ‘entry_time’,’echo’=>false, ‘id’=>$the_id, ‘custom_markup’=>$custom_markup));
    $meta .= “<time class=’slide-meta-time updated’ $markup>” .get_the_time(get_option(‘date_format’), $the_id).”</time>”;

    $author_id = $entry->post_author;
    $author_url = get_author_posts_url( $author_id);
    $author_name = get_the_author_meta( ‘display_name’ , $author_id );

    $meta .= ” by $author_name“;

    $meta .= “</div>”;

    if($blogstyle !== “elegant-blog”)
    {
    $output .= $meta;
    $meta = “”;
    }

    #756658

    i think it will be the best if you change the testimonial.php

    copy a testimonial.php to your child-theme / shortcodes folder
    if this does not exist – create one.
    the file to copy is in enfold/config-templatebuilder/avia-shortcodes/

    and add this to your child-theme functions.php :

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
    
      return $paths;
    }

    now the copy will be used instead of the parent-theme shortcode.

    see line : 420/421:

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

    here is your “-” that &ndash; delete it to have:

    if($link)	$output .= "<span class='hidden avia-testimonial-markup-link'  {$markup_url}>{$link}</span>";
    if($link)	$output .= " <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";

    if you like to insert later an icon you can place it then via pseudoclass :before f.e:

    .avia-testimonial-link::before {
        content: "\e822 \00a0";
        font-family: entypo-fontello;
    }

    Result here: Link

    Hi Ismael,

    thanks a lot. The images on the press-archive page are now gone (2.) but the comments (1.) still give me a headache. I allready commented out that whole part

    /* 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' );
    
    							$meta .= ""; //<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						} */

    and nothing changed. Maybe there is something wrong with the cache, but all caches that I know of have been cleared and reset and still the comments show up.

    Best regards,
    microTOOL

    Hey microtool,

    Thank you for using Enfold.

    1.) You need to modify the config-templatebuilder > avia-shortcodes > postslider.php file. Look for this code around line 439:

    	$meta .= "
    <div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount}
    

    2.) Use this css code:

    .post-type-archive-press .slide-image {
        display: none;
    }

    Best regards,
    Ismael

    #750565
    fmg
    Participant

    Hi,
    I’ve introduced a custom field to show an overline / deck head above a post’s heading (variable name $dachzeile) instead of the category name.
    Works fine on the post page itself – I managed to add this code snippet to loop-index.php:

    $dachzeile = get_post_meta($post->ID, 'dachzeile', true);
    				if($dachzeile != '') {  echo '<div class="dachzeile">' . $dachzeile . '</div>'; }
    				else { echo '<div class="dachzeile">'; the_category(' / '); echo '</div>';}

    However, I struggle to modify postslider.php in the correct way.
    Tried to modify the line with h3 like this …

    $output .= "<div class='dachzeile_startseite'>".$dachzeile."</div><h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";

    … (fallback option from above not implemented yet), but the value of the custom field does not appear.

    • What is missing to make the custom field data loading (getting it into the loop, registering support for custom fields within a custom post type in supports $args etc.)?
    • How does the correct code with fallback option (“use category name if $dachzeile is empty”) look like?

    Thanks!

    • This topic was modified 8 years, 10 months ago by fmg. Reason: Addtional links/explanations
Viewing 30 results - 61 through 90 (of 247 total)