-
AuthorSearch Results
-
April 13, 2015 at 2:20 pm #427496
In reply to: Remove link on titles in Ajax portfolio
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ünterApril 10, 2015 at 3:11 pm #426609leplusweb
ParticipantHi !
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
March 26, 2015 at 9:27 pm #418838In reply to: Remove Links to Single Post page on Magazine Layout
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,
ElliottMarch 25, 2015 at 12:16 am #417476In reply to: Navegación de single portfolio
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,
JosueMarch 10, 2015 at 7:58 pm #409039In reply to: Taxonomy description for portfolio
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_descriptionto work. You can use this function for that – http://codex.wordpress.org/Function_Reference/wp_get_post_termsRegards,
JosueMarch 9, 2015 at 8:24 pm #408417In reply to: Multi-Autho Blog Questions
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,
ElliottMarch 3, 2015 at 8:28 am #404989In reply to: Problem with "meta on grid" changings
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,
IsmaelFebruary 27, 2015 at 6:05 am #403177In reply to: ERROR SEO TITLE H3 EN BLOG MODO REJILLA
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,
JosueFebruary 25, 2015 at 12:10 pm #401980In 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,
IsmaelFebruary 20, 2015 at 7:21 am #399473Hi!
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,
IsmaelFebruary 11, 2015 at 2:22 pm #394336In reply to: Testimonial Author Position
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 .= " – <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 .= " – <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ünterFebruary 11, 2015 at 12:49 pm #394279In reply to: Author Name in Blog Archive (blog-grid mode)
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ünterJanuary 27, 2015 at 5:09 pm #386374In reply to: Half Sized Blog and Magazine Element Issue
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.
January 11, 2015 at 5:24 am #377908In reply to: Truncate the blog post title
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,
IsmaelJanuary 6, 2015 at 9:12 pm #375845In reply to: Search Results grid layout –> Read more
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,
ElliottJanuary 5, 2015 at 9:26 pm #375341In reply to: Display a caption overlay?
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,
ElliottJanuary 4, 2015 at 3:59 am #374603In reply to: Testimonial name on top
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 .= " – <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 .= " – <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,
IsmaelJanuary 2, 2015 at 5:51 pm #374112Hey!
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!
ElliottDecember 19, 2014 at 12:54 pm #370529In reply to: How to add a link title to a shortcode button?
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.
December 18, 2014 at 4:55 pm #370048Topic: Portfolio Item Title (Child Theme)
in forum Enfoldiwebware
ParticipantI 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>”;December 10, 2014 at 2:01 am #365770In reply to: Featuring or Highlighting a New Post
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!
IsmaelDecember 9, 2014 at 4:38 pm #365412In reply to: Featuring or Highlighting a New Post
This reply has been marked as private.December 9, 2014 at 7:38 am #365211In reply to: Featuring or Highlighting a New Post
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!
IsmaelDecember 8, 2014 at 6:02 pm #364832In reply to: Smaller blog icon of featured image in blog posts?
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 blogsAs 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,
ElliottDecember 1, 2014 at 3:12 am #360537Hi!
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,
IsmaelNovember 27, 2014 at 11:20 pm #359229In reply to: Add page urls to ajax portfolio
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,
IsmaelNovember 21, 2014 at 5:15 pm #355308In reply to: Testimonials changing layout
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 .= " – <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!
ElliottNovember 20, 2014 at 6:48 pm #354376In reply to: comments and timestamp not appearing in Blog Posts
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,
ElliottNovember 18, 2014 at 7:09 pm #353177In reply to: Enfold SEO optimization
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!
ElliottNovember 10, 2014 at 10:39 pm #349081In reply to: Remove Post Navigation for some categories
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.
-
This reply was modified 10 years, 11 months ago by
-
AuthorSearch Results
-
Search Results
-
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
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>”;
