-
AuthorSearch Results
-
January 17, 2014 at 7:50 am #211064
In reply to: Partner/Logo Element title under elements
Hey ceubri!
Edit config-templatebuilder > avia-shortcodes > logoslider.php, find this code on line 465:
$output .= !empty($link) ? "<a href='{$link}' data-rel='slide-".avia_partner_logo::$slider."' class='slide-image' title='{$linktitle}' {$blank} >{$img}</a>" : $img; $output .= "</div>";Replace it with:
$output .= !empty($link) ? "<a href='{$link}' data-rel='slide-".avia_partner_logo::$slider."' class='slide-image' title='{$linktitle}' {$blank} >{$img}</a>" : $img; $output .= "<div class='logo-title'>".$hover."</div>"; $output .= "</div>";Best regards,
IsmaelJanuary 10, 2014 at 12:50 am #207714Topic: Modifying the output of shortcode in child theme
in forum Enfoldsimonswiss
ParticipantI am trying to change the way the testimonial shortcode displays (created via page builder) to have the name and position on top of the actual testimonial.
I could do this in the parent theme by modifying the output order in the /config-templatebuilder/avia-shortcoldes/testimonials.php file.
My question is: what is the best, most WP friendly way to include this modification in the child theme so that it doesn’t revert back to default display on theme update?
Do i need to re-create the /config-templatebuilder/avia-shortcodes structure or can i do it directly in child theme’s functions.php?
The modified code looks like this:
function av_testimonial_single($atts, $content = "", $shortcodename = "") { // ... //final output $markup = avia_markup_helper(array('context' => 'person','echo'=>false)); $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' {$markup_name}>{$name}"; if($subtitle) $output .= "<span class='avia-testimonial-subtitle' {$markup_job}>{$subtitle}</span>"; if($link) $output .= "<span class='hidden avia-testimonial-markup-link' {$markup_url}>{$link}</span>"; if($link) $output .= " – {$linktext}"; $output .= "</div>"; $output .= "</div>"; $output .= "<div class='avia-testimonial-content' $markup_text>"; $output .= ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content)); $output .= "</div>"; $output .= "</div>"; $output .= "</div>"; if(avia_sc_testimonial::$counter == avia_sc_testimonial::$columns) { $output .= "</section>"; } avia_sc_testimonial::$counter++; if(avia_sc_testimonial::$counter > avia_sc_testimonial::$columns) { avia_sc_testimonial::$counter = 1; avia_sc_testimonial::$rows++; } return $output; }December 22, 2013 at 4:32 am #202992Thank you Josue!
I have been able to add a dynamic link to the full portfolio item by editing lines 606-608 like this:
$output .= "<span class='avia-arrow'></span>"; $output .= "<p class='read-more-portfolio' $markup><a href='{$link}'>More About This Project</a></p>"; $output .= "</div>";But I have only been able to get the change to render if I edit the parent theme (Enfold). I can’t get it to render by uploading the config-templatebuilder and avia-shortcodes and portfolio.php into my child theme (hoping they would override the parent).
Can you tell me how I can make these changes to my child theme to leave the core intact?
Here’s a thumbnail of how it looks in my child theme. See the ‘More About This Project’ text.
-
This reply was modified 12 years ago by
GRAPHICpilot.
December 18, 2013 at 9:39 am #201449In reply to: modification / changing language
Hey jmalevic!
1) Open up /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php and replace
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)); $output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>"; $output .= "</div>"; }with
if($show_meta && !empty($excerpt)) { $output .= "<div class='slide-meta'>"; $taxonomies = get_object_taxonomies(get_post_type($the_id)); $cats = ''; $excluded_taxonomies = apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id); if(!empty($taxonomies)) { foreach($taxonomies as $taxonomy) { if(!in_array($taxonomy, $excluded_taxonomies)) { $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' '; } } } if(!empty($cats)) { $output .= '<div class="slide-meta-comments">'; $output .= $cats; $output .= "</div><div class='slide-meta-del'>/</div>"; } $output .= "<div class='slide-meta-time updated'>". get_the_tag_list( __('Tags:','avia_framework').' ', ',') ."</div>"; $output .= "</div>"; }2) Please try to use Codestyling to translate all text strings within the theme code: http://wordpress.org/plugins/codestyling-localization/
Install the plugin, go to Tools > Localization and select “Themes”. Then search for “Enfold” in the list and click on “Add new language”. Then select your language from the list and click the “create po-file” button. Click on “Rescan” to search for all text strings. Then click on “Edit” and translate the required strings from the “avia_framework” textdomain. At least click the “create mo file” button next to the “Textdomain” selection dropdown (top left corner).Regards,
PeterDecember 4, 2013 at 10:31 am #196058In reply to: Dash before testimonial
Hi Smaskit6!
Open up /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/testimonials.php and replace
if($link) $output .= " – <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";with
if($link) $output .= " <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";Cheers!
PeterNovember 16, 2013 at 10:31 am #189564In reply to: Portfolio item title
Hi!
Open up /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php and replace
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";with
$output .= "<h2 class='portfolio-preview-title entry-title' $markup>".$entry->post_title."</h2>";to remove the link.
Best regards,
PeterNovember 12, 2013 at 9:20 am #187153In reply to: Help! Open portfolio link in a new window
Hi have this code :
$output .= "<div data-ajax-id='{$the_id}' class=' grid-entry flex_column isotope-item all_sort {$style_class} {$post_class} {$sort_class} {$grid} {$extraClass}'>"; $output .= "<div class='main_color inner-entry'>"; $output .= "<a target='_blank'href='{$link}' data-rel='grid-".avia_post_grid::$grid."' class='grid-image' title='".esc_attr(strip_tags($title))."'>".get_the_post_thumbnail( $the_id, $image_size )."</a>"; $output .= !empty($title) || !empty($excerpt) ? "<div class='grid-content'><div class='avia-arrow'></div>" : ''; $output .= !empty($title) ? "<h3 class='grid-entry-title'><a target='_blank'href='{$title_link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>": ''; $output .= !empty($excerpt) ? "<div class='grid-entry-excerpt'>".$excerpt."</div>" : ''; $output .= !empty($title) || !empty($excerpt) ? "</div>" : ''; $output .= "</div>"; $output .= "</div>";November 12, 2013 at 3:31 am #187082In reply to: Author profil picture in single post
Hey hitokiri_kun!
You can edit includes > loop-index.php, find this code:
echo "<div class='entry-content-wrapper clearfix {$post_format}-content'>"; echo '<header class="entry-content-header">'; echo $title;Below, add this code:
$gravatar = ""; $link = get_post_format_link($post_format); if($post_format == 'standard') { $gravatar = get_avatar( get_the_author_meta('email'), '75', "blank" ); $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>"; echo $blog_meta_output;After that, add this on your custom.css or Quick CSS:
.single .rounded-container { display: block; position: relative; height: 50px; width: 50px; float: right; }You can use gravatar for author images.
Regards,
IsmaelOctober 30, 2013 at 2:07 am #182310In reply to: Vimeo URL Links not working
Hi!
You can edit config-templatebuilder > aviashortcodes > button.php, find this code on line 226:
$output .= "<a href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";Replace it with:
$output .= "<a chref='{$link}' class='noLightbox avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";Remove browser cache then reload the page.
Cheers!
IsmaelOctober 28, 2013 at 2:15 am #181336In reply to: Image hover and mainpage post grid
Hey msfoto!
1.) Add this on your custom.css or Quick CSS:
.image-overlay { display: none !important; opacity: 0 !important; }2.) You can edit config-templatebuilder > avia-shortcodes > postslider.php, find 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>"; } $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false)); $output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>"; $output .= "</div>"; }Regards,
IsmaelOctober 25, 2013 at 7:32 am #180525Hi!
Edit config-templatebuilder > avia-shortcodes > button.php, find this code:
$output .= "<a href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";Replace it with:
$output .= "<a href='{$link}' class='noLightbox avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";Best regards,
IsmaelOctober 23, 2013 at 3:38 am #179410In reply to: We need to put the title up featured images.
Hi brunostersa!
Open /config-templatebuilder/avia-shortcodes/postslider.php:
Replace line 333-341:
$markup = avia_markup_helper(array('context' => 'entry','echo'=>false)); $output .= "<article class='slide-entry flex_column {$style} {$post_class} {$grid} {$extraClass} {$thumb_class}' $markup>"; $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : ""; $output .= "<div class='slide-content'>"; $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false)); $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>';By this:
$markup = avia_markup_helper(array('context' => 'entry','echo'=>false)); $output .= "<article class='slide-entry flex_column {$style} {$post_class} {$grid} {$extraClass} {$thumb_class}' $markup>"; $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false)); $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>'; $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : ""; $output .= "<div class='slide-content'>";Cheers!
JosueOctober 11, 2013 at 11:32 am #174102In reply to: Change the Layout of "Blog Space" in Avia Designer
Hello Jack!
1) Yes but it requires advanced coding skills. If you’re a skilled php/wordpress developer you can modify the code in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/blog.php and /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php. If you’re not a developer please don’t touch these files and hire a freelancer if necessary.
You can hide the post thumbnail with css – insert following code into the quick css field
.home .avia-content-slider-inner .slide-image{ display: none; }You can’t remove the link with css though. If you want to remove the link from the title open up wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\postslider.php and replace
$output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';with
$output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup>".$title."</h3>" : '';However note that this mod will affect ALL blog grid elements and post sliders and they will show up without a clickable title afterwards.
2) No, the color section is always a fullwidth element. However you can use a 2/3 column element within the color section to limit the content width.
Best regards,
PeterOctober 7, 2013 at 4:56 am #171443In reply to: Title Attributes to Navigation and Buttons
Hey beat-factory!
1.) Go to Appearance > Menus, edit each menu item to add a Title Attribute.
2.) Go to Settings > General > Site Title. The text you input on the field will be use as the logo title attribute.
3.) Edit config-templatebuilder > avia-shortcodes > button.php, find this code starting on line 225:
$output = ""; $output .= "<a href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >"; $output .= "<span class='avia_button_icon' {$display_char}></span>"; $output .= "<span class='avia_iconbox_title' >".$atts['label']."</span>"; $output .= "</a>";Replace it with:
$output = ""; $output .= "<a title='".$atts['label']."' href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >"; $output .= "<span class='avia_button_icon' {$display_char}></span>"; $output .= "<span class='avia_iconbox_title' >".$atts['label']."</span>"; $output .= "</a>";The button’s “button label” will be use as the title attribute for the button element.
Regards,
Ismael-
This reply was modified 12 years, 3 months ago by
Ismael.
September 23, 2013 at 1:24 am #164957Topic: Alternative text for "0 Comment"
in forum EnfoldSeptember 22, 2013 at 8:58 pm #164876In reply to: Blog Meta Author Not Linking Correctly
Hey Sofia!
Use this code instead:
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"; if($commentCount == "0") { $text_add = __('Contribute', 'avia_framework' ); } else { $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>"; } $output .= "<div class='slide-meta-time'>" .get_the_time(get_option('date_format'), $the_id)."</div>"; $author_id = $entry->post_author; $author_url = get_site_url()."/author/".get_the_author_meta( 'user_nicename' , $author_id ); $author_name = get_the_author_meta( 'display_name' , $author_id ); $output .= 'by <a href="'.$author_url.'">'.$author_name.'</a>'; $output .= "</div>"; }Cheers!
JosueSeptember 9, 2013 at 7:39 am #140042In reply to: Open Blog post in new windwo – grid Layout
Open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodespostslider.php and replace
$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";with
$output .= $thumbnail ? "<a target='_blank' href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";and
$permalink = '<div class="read-more-link"><a href="'.get_permalink($the_id).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> →</span></a></div>';with
$permalink = '<div class="read-more-link"><a target="_blank" href="'.get_permalink($the_id).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> →</span></a></div>';September 9, 2013 at 6:48 am #140125In reply to: Remove Portfolio Tooltips
Open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesportfolio.php and
$link_markup = apply_filters('avf_portfolio_custom_image_container', array("a href='{$link}' title='".esc_attr(strip_tags($title))."' ",'a'), $entry);replace with
$link_markup = apply_filters('avf_portfolio_custom_image_container', array("a href='{$link}' ",'a'), $entry);However because of seo reasons I’d recommend to stick with the link title/tooltip.
September 5, 2013 at 11:54 pm #139714Hey,
Yes, it is possible. Edit config-templatebuilder > avia-shortcodes > portfolio.php, find this code on line 476:
$output .= "<div class='av_table_col portfolio-entry portfolio-preview-content'>";
$output .= "<h2 class='portfolio-preview-title'><a href='{$link}'>".$entry->post_title."</a></h2>";
$output .= "<div class='entry-content'>";
$output .= $content;
$output .= "</div>";
$output .= "<span class='avia-arrow'></span>";
$output .= "</div>";Remove it.
Regards,
Ismael
August 28, 2013 at 4:56 am #136284In reply to: Change meta on grid & blog posts
Hey,
1.) Please use this instead:
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";
if($commentCount == "0")
{
$text_add = __('Contribute', 'avia_framework' );
}
else
{
$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>";
}
$output .= "<div class='slide-meta-time'>" .get_the_time(get_option('date_format'), $the_id)."</div>";
$author_id = $entry->post_author;
$author_url = get_site_url()."/author/".get_the_author_link();
$author_name = get_the_author_meta( 'display_name' , $author_id );
$output .= 'by <a href="'.$author_url.'">'.$author_name.'</a>';
$output .= "</div>";
}2.) Edit this line of code on loop-index.php:
comments_popup_link( "0 ".__('Comments','avia_framework'),Replace it with:
comments_popup_link( "".__('Comments','avia_framework'),Regards,
Ismael
August 24, 2013 at 6:17 am #136282In reply to: Change meta on grid & blog posts
Hi,
1) Open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodespostslider.php and replace
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>";
}
$output .= "<div class='slide-meta-time'>" .get_the_time(get_option('date_format'), $the_id)."</div>";
$output .= "</div>";
}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";
if($commentCount == "0")
{
$text_add = __('Contribute', 'avia_framework' );
}
else
{
$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>";
}
$output .= "<div class='slide-meta-time'>" .get_the_time(get_option('date_format'), $the_id)."</div>";
$author_id = $entry->post_author;
$author_url = get_the_author_meta( 'url' , $author_id );
$author_name = get_the_author_meta( 'display_name' , $author_id );
$output .= 'by <a href="'.$author_url.'">'.$author_name.'</a>';
$output .= "</div>";
}If you want to change the date replace get_option(‘date_format’) with a custom date format – see: http://codex.wordpress.org/Formatting_Date_and_Time
2) In includes/loop-index.php replace
comments_popup_link( "0 ".__('Comments','avia_framework'),
"1 ".__('Comment' ,'avia_framework'),
"% ".__('Comments','avia_framework'),'comments-link',
"".__('Comments Disabled','avia_framework'));with
comments_popup_link( __('Contribute','avia_framework'),
"1 ".__('Comment' ,'avia_framework'),
"% ".__('Comments','avia_framework'),'comments-link',
"".__('Comments Disabled','avia_framework'));3) No, the portfolio grid uses a different css & html code and this would require some customization.
August 12, 2013 at 2:01 am #133855In reply to: contact 7 side by side text fields
Hi,
It always say “”Your access to this site has been limited”” when I clicked on any links. I don’t see the original issue where you place a table for name and age fields.
Edit config-templatebuilder > aviashortcode > portfolio.php, find this code:
$link_markup = apply_filters('avf_portfolio_custom_image_container', array("a href='{$link}' title='".esc_attr(strip_tags($title))."' ",'a'), $entry);Replace it with:
$link_markup = apply_filters('avf_portfolio_custom_image_container', array("a target='_blank' href='{$link}' title='".esc_attr(strip_tags($title))."' ",'a'), $entry);Regards,
Ismael
July 18, 2013 at 5:44 am #129523Hi,
Sorry for that.
Edit includes > loop-index.php, find this code
if(strpos($blog_style, 'multi') !== false)
{
$gravatar = "";
$link = get_post_format_link($post_format);
if($post_format == 'standard')
{
$gravatar = get_avatar( get_the_author_meta('email'), '75', "blank" );
$link = get_author_posts_url($post->post_author);
}
echo "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
}
else if(strpos($blog_style, 'small') !== false)
{
echo "<a href='{$link}' class='small-preview'>".$slider.$icon."</a>";
}Below, add this code
if(strpos($blog_style, 'multi') !== true)
{
$gravatar = "";
$link = get_post_format_link($post_format);
if($post_format == 'standard')
{
$gravatar = get_avatar( get_the_author_meta('email'), '75', "blank" );
$link = get_author_posts_url($post->post_author);
}
echo "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
}
else if(strpos($blog_style, 'small') !== true)
{
echo "<a href='{$link}' class='small-preview'>".$slider.$icon."</a>";
}Regards,
Ismael
July 14, 2013 at 8:31 am #129268Open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodespostslider.php and replace
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>";
}
$output .= "<div class='slide-meta-time'>" .get_the_time(get_option('date_format'), $the_id)."</div>";
$output .= "</div>";
}with
if($show_meta && !empty($excerpt))
{
$output .= "<div class='slide-meta'>";
$output .= "<div class='slide-meta-time'>" .get_the_time(get_option('date_format'), $the_id)."</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>";
}
$output .= "</div>";
}July 11, 2013 at 4:13 am #128762In reply to: addthis Social Share html
Hi,
First go to the Add this plugin dashboard. Settings > Addthis Share. Fill in the AddThis Profile ID: then login using your Addthis account. Get the Addthis API code on your actual addthis account. Sign in here: https://www.addthis.com/login
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_pinterest_pinit"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51de2d2b7e09a8f5"></script>
<!-- AddThis Button END -->Edit wp-contentthemesenfoldconfig-templatebuilderavia-shortcodes > portfolio.php, find this code.
$output .= "<h2 class='portfolio-preview-title'><a href='{$link}'>".$entry->post_title."</a></h2>";Below, add the addthis api code with some modifications.
$output .= '<!-- AddThis Button BEGIN -->';
$output .= '<div class="addthis_toolbox addthis_default_style ">';
$output .= '<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a';
$output .= '<a class="addthis_button_tweet"></a>';
$output .= '<a class="addthis_button_pinterest_pinit"></a>';
$output .= '<a class="addthis_counter addthis_pill_style"></a>';
$output .= '</div>';
$output .= '<!-- AddThis Button END -->';After that, open footer.php, find this code
<a href='#top' id='scroll-top-link' class='avia-font-entypo-fontello'></a>Below, add the addthis javascript code with your unique profile id. It will look something like this.
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51de2d2b7e09a8f5"></script>We got the code from the original API code.
If you successfully did the instructions above, you will have the addthis button below the portfolio title.
Regards,
Ismael
July 1, 2013 at 6:58 am #127396In reply to: How to remove featured image from single post
1) In includes/loop-index.php replace
else if(strpos($blog_style, 'small') !== false)
{
echo "<a href='{$link}' class='small-preview'>".$slider.$icon."</a>";
}with
else if(strpos($blog_style, 'small') !== false && !is_single())
{
echo "<a href='{$link}' class='small-preview'>".$slider.$icon."</a>";
}2) You can try this fix: http://mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html – add the code to the bottom of functions.php.
3) In index.php replace:
get_template_part( 'includes/loop', 'index' );with
get_template_part( 'includes/loop', 'index' );
//show related posts based on tags if there are any
get_template_part( 'includes/related-posts');Note it will only work on the standard blog page and not with the “layout builder” blog element.
June 24, 2013 at 11:41 am #25280Topic: Move blog date to the left
in forum Enfoldandypeck
ParticipantHi there,
I posted a few weeks ago a request to find out how to create the blog list and blog entry with a date in place where the profile picture/blog type goes (the circle to the left). Ideally, it would still have the dotted line that links between each blog but would have a large date (abbreviated “MAR 13′) instead of my profile picture or blog type.
Unfortunately the method suggested didn’t work….
1) Open includes > loop-index.php, find this code: $link = get_author_posts_url($post->post_author);
2) At the bottom place this code: $date = get_the_date();
3) Then find this code: echo “<span class=’rounded-container’>”.$gravatar.$icon.”</span>
4) Replace it with: echo “<span class=’rounded-container’>”.$date.”</span>
Tbh I wasn’t sure where to place the code: $date = get_the_date(); (the instructions said ‘at the end’ but at the end of where exactly? Although I DID try different logical positions so im not sure thats the problem anyway.
Anyway, even though I said it wasn’t working the topic was closed prematurely.
Can you help please
Andy
June 22, 2013 at 5:31 am #126056In reply to: add cross-domain tracking code
1) You can modify the button shortcode – open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesbuttons.php and replace:
$output .= "<a href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";with
if($link == 'http://www.test12345.nl') {
$output .= "<a href='{$link}' onclick="_gaq.push(['_link', 'http://www.test12345.nl']); return false;" class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";
}else{
$output .= "<a href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";
}2) This is imo not easily possible. You can try a plugin like http://wordpress.org/plugins/jin-menu/ but I’m not sure if it works.
June 18, 2013 at 7:10 am #124893In reply to: Home Page Blog – Move Title & Comments Above Image
Sorry for the late reply – I missed this post. Open up wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php and delete:
$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";Then replace:
$output .= !empty($excerpt) ? "<div class='slide-entry-excerpt'>".$excerpt."</div>" : "";with
$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : ""; $output .= !empty($excerpt) ? "<div class='slide-entry-excerpt'>".$excerpt."</div>" : "";June 17, 2013 at 9:18 am #125129Hi,
1.) Edit wp-contentthemesenfoldconfig-templatebuilderavia-shortcodes postslider.php then find this code on line 317
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 ( $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>";
}2.) If you want to disable the wp comment. Open single.php then find this code
//wordpress function that loads the comments template "comments.php"
comments_template( '/includes/comments.php');Replace it with:
//wordpress function that loads the comments template "comments.php"
//comments_template( '/includes/comments.php');Cheers,
Ismael
-
This reply was modified 12 years ago by
-
AuthorSearch Results
-
Search Results
-
I am trying to change the way the testimonial shortcode displays (created via page builder) to have the name and position on top of the actual testimonial.
I could do this in the parent theme by modifying the output order in the /config-templatebuilder/avia-shortcoldes/testimonials.php file.
My question is: what is the best, most WP friendly way to include this modification in the child theme so that it doesn’t revert back to default display on theme update?
Do i need to re-create the /config-templatebuilder/avia-shortcodes structure or can i do it directly in child theme’s functions.php?
The modified code looks like this:
function av_testimonial_single($atts, $content = "", $shortcodename = "") { // ... //final output $markup = avia_markup_helper(array('context' => 'person','echo'=>false)); $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' {$markup_name}>{$name}"; if($subtitle) $output .= "<span class='avia-testimonial-subtitle' {$markup_job}>{$subtitle}</span>"; if($link) $output .= "<span class='hidden avia-testimonial-markup-link' {$markup_url}>{$link}</span>"; if($link) $output .= " – {$linktext}"; $output .= "</div>"; $output .= "</div>"; $output .= "<div class='avia-testimonial-content' $markup_text>"; $output .= ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content)); $output .= "</div>"; $output .= "</div>"; $output .= "</div>"; if(avia_sc_testimonial::$counter == avia_sc_testimonial::$columns) { $output .= "</section>"; } avia_sc_testimonial::$counter++; if(avia_sc_testimonial::$counter > avia_sc_testimonial::$columns) { avia_sc_testimonial::$counter = 1; avia_sc_testimonial::$rows++; } return $output; }Topic: Move blog date to the left
Hi there,
I posted a few weeks ago a request to find out how to create the blog list and blog entry with a date in place where the profile picture/blog type goes (the circle to the left). Ideally, it would still have the dotted line that links between each blog but would have a large date (abbreviated “MAR 13′) instead of my profile picture or blog type.
Unfortunately the method suggested didn’t work….
1) Open includes > loop-index.php, find this code: $link = get_author_posts_url($post->post_author);
2) At the bottom place this code: $date = get_the_date();
3) Then find this code: echo “<span class=’rounded-container’>”.$gravatar.$icon.”</span>
4) Replace it with: echo “<span class=’rounded-container’>”.$date.”</span>
Tbh I wasn’t sure where to place the code: $date = get_the_date(); (the instructions said ‘at the end’ but at the end of where exactly? Although I DID try different logical positions so im not sure thats the problem anyway.
Anyway, even though I said it wasn’t working the topic was closed prematurely.
Can you help please
Andy

Hi,
I currently have an issue with an alternative text for “0 Comments” in the grid layout.
When there are no comments yet, I want to engage the user to post, so it would show “Contribute” instead of “0 Comment”.
The great DUDE gave me some code to edit on config-templatebuilder/avia-shortcodes/postslider.php a month ago on this support post:
From what I recall it worked great, but I just updated the theme, changed the code on postslider.php with the code I previously used, but it doesn’t work anymore.
It shows “0 Contribute” instead of just “Contribute”.
Is there a way to correct this?
My code is the following, near line 323 of config-templatebuilder/avia-shortcodes/postslider.php:
2) I also noticed that the author url doesn’t work.
Instead of going to domain.com/author/name-surname, it goes to domain.com/author/Name%20Surname, which doesn’t exist so shows an error 404.
Thanks for your help!