-
AuthorSearch Results
-
November 7, 2014 at 8:42 pm #347918
In reply to: Post date above post title
Hey jusupof!
Try opening up /enfold/config-templatebuilder/avia-shortcodes/postslider.php and move lines 370 – 373,
$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>';Down to line 389 so they display right above this,
$markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));Cheers!
ElliottNovember 4, 2014 at 10:02 am #345780In reply to: What template (loop) is used in tags.php
Hi Ismael, thanks for your reply.
But now I have one more question, the last one! ;-)
I want to show in what issue nr(=categorie) the post is shown. I tried the best I could but I can’t get the right cat to show up.
This is what I did: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)); $category = get_the_category(); 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>'; }; //$output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>"; $output .= "</div>"; }but in this way only a “random cat” is shown. Could you help me out?
Thanks!
October 8, 2014 at 7:20 pm #332636Topic: Problem with Strings in magazine.php?
in forum Enfoldgünter
ParticipantI need to display some kind of posts not in single pages, but to display them in an archive-like page with a collapsible list. Therefore I had to make some modifications in magazine.php. My modifications:
function render_entry($entry, $style) { $output = ""; $image = get_the_post_thumbnail( $entry->ID, $this->atts['image_size'][$style] ); $link = get_permalink($entry->ID); /* START MODIFIKATION ----------------------------------- // $titleAttr = "title='".__('Link to:','avia_framework')." ".the_title_attribute('echo=0')."'"; // DELETED end delete, continue modification: ---------------------- */ $titleAttr = "title='".get_the_title($entry->ID)."'"; // new $titleid = $entry->ID; // new if( get_the_ID() == '2' ) { // new ( if magazine at hompage ) $title = "<a href='http://www.timegolf.net/_news/#news-".$titleid."?news=".$titleid."' {$titleAttr}>".get_the_title($entry->ID)."</a>"; // new } // new else { // new interrupt modification: -------------------------------------- */ $title = "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a>"; end interrupt , continue modification: ---------------- */ } // new END MODIFICATION---------------------------------------- */The page works properly, if it is called by a simple link (“/page/”) or with only one attribute behind the url (/page/#anchor or /?get_var=id).
Screenhot:

Unfortunately I need both: hash tags for deep-linking to the specific item AND the id, to open the called up item by javascript. In that case the second tab in the left column loses its position and clicking at it does not work anymore.
Screenshots:


I have no idea, how to solve this tricky problem.
Please help me!
GünterSeptember 10, 2014 at 11:29 pm #317014In reply to: Comments count on magazine element
Hi Rolf,
Open /enfold/config-templatebuilder/avia-shortcodes/magazine.php and look for line 529:
$title = "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a>";Replace it by this:
$title = "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a> | <a href='{$link}'>".get_comments_number($entry->ID)." Comments</a>";Regards,
Josue-
This reply was modified 11 years, 3 months ago by
Josue.
September 5, 2014 at 3:47 am #313756In reply to: Google In-Page Analytics on Buttons
Hi ihf-eramstad!
Thank you for using Enfold.
You need to add the _trackEvent() method on the button. Edit config-templatebuilder > avia-shortcodes > button.php. Find this coed on line 226:
$output .= "<a href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";Add the onclick attribute provided by GA. Refer to this link: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide#SettingUpEventTracking
You should replace the code above with something like this:
$output .= "<a href='{$link}' onClick='_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";Best regards,
IsmaelSeptember 3, 2014 at 2:11 pm #312866The function you add to your child theme functions.php file tells the theme where to look to find replacement theme files. Without editing it, the function points to the shortcodes folder: https://github.com/DevinVinson/enfold-child-starter/blob/master/functions.php#L27
If you don’t want the slide meta to show at all you would delete the entire div. This isn’t a theme usage issue at this point as you are customizing php files. We don’t typically break down this kind of thing into step by step directions because of how many variables there are in what anyone could be or want to do and that its very easy to make a mistake when you are editing a file.
With php if you are missing a single ; or . it can cause the whole site to whitescreen. Even editing the file without a plain text editor could cause issues.
For you, you want to remove the whole meta block output I think so:
$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>";If not then you would be deleting the specific bit inside of there that you want to remove.
September 3, 2014 at 4:05 am #312611This reply has been marked as private.August 29, 2014 at 6:08 pm #311036In reply to: Music Playlist Not Appear & target="_blank"
Hey!
Please open up wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php and replace
$output .= "<h3 class='grid-entry-title entry-title' $markup><a href='{$title_link}' $target title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";with
$target = !empty($custom_link) ? "target='_blank'" : ''; $output .= "<h3 class='grid-entry-title entry-title' $markup><a href='{$title_link}' $target title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";and:
$link_markup = apply_filters('avf_portfolio_custom_image_container', array("a href='{$link}' title='".esc_attr(strip_tags($title))."' ",'a'), $entry);with
$target = !empty($custom_link) ? "target='_blank'" : ''; $link_markup = apply_filters('avf_portfolio_custom_image_container', array("a href='{$link}' {$target} title='".esc_attr(strip_tags($title))."' ",'a'), $entry);Regards,
PeterAugust 28, 2014 at 7:04 am #310256In reply to: Title above Image
Hi Chris,
Open /enfold/config-templatebuilder/avia-shortcodes/postslider.php and look for this code:
$markup = avia_markup_helper(array('context' => 'entry','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup)); $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, '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>';Replace it by this:
$markup = avia_markup_helper(array('context' => 'entry','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup)); $output .= "<article class='slide-entry flex_column {$style} {$post_class} {$grid} {$extraClass} {$thumb_class}' $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>'; $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, 'id'=>$the_id, 'custom_markup'=>$custom_markup));Regards,
JosueAugust 19, 2014 at 3:40 pm #306373In reply to: Images in Categories and Read More
This reply has been marked as private.July 10, 2014 at 12:35 pm #289429In reply to: Post Slider – don't show number of comments
Hi Welmoed!
Thank you for using our theme.
Open file
enfold/config-templatebuilder/avia-shortcodes/postslider.php and find line 383:$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";Replace this with:
$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$text_add}</a></div><div class='slide-meta-del'>/</div>";Best regards,
GünterJune 27, 2014 at 4:10 am #284378Hi Josue,
And thanks for the direction!
I also needed to customize some of the text in the <h4 class=’proj-nav-title’> of the post nav tabs so I ended up copying the whole
avia_post_nav function into my child theme’s functions.php to do that customization and then set $same_category parameter to “true”:if(!function_exists('avia_post_nav')) { 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; $tc1 = $tc2 = ""; $link = get_permalink($entry->ID); $image = get_the_post_thumbnail($entry->ID, 'square'); $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'>"; $tc3 .= " <h4 class='proj-nav-title'>View Another Project</h4>"; $tc1 = " <p class='entry-title'>".avia_backend_truncate(get_the_title($entry->ID),75," ")."</p>"; if($image) $tc2 = " <span class='entry-image'>{$image}</span>"; $output .= $key == 'prev' ? $tc3.$tc1.$tc2 : $tc2.$tc3.$tc1; $output .= " </span>"; $output .= " </span>"; $output .= "</a>"; } return $output; } }June 25, 2014 at 10:18 am #283470In reply to: Add rel="nofollow" on button links #2
Hey!
Please go to Enfold/config-templatebuilder/Avia-shortcodes folder and open Buttons.php file and find
$output .= "<a href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";and change it to
$output .= "<a rel='nofollow' href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";Cheers!
YigitJune 21, 2014 at 6:58 am #281875In reply to: av-special-heading-tag style to slide-entry-title
Hi Ronald,
Open /config-templatebuilder/avia-shortcodes/contentslider.php and look for lines 344-346:
$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 them by this:
$output .= !empty($title) ? "<div style='margin-top: 0;' class='av-special-heading av-special-heading-h3'><h3 class='av-special-heading-tag 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><div class="special-heading-border"><div class="special-heading-inner-border"></div></div>' : '';Regards,
JosueMay 26, 2014 at 6:27 pm #270194Hey nerkasa!
Yes the instructions are still valid. Basically you need to replace:
$output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$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 entry-content' $markup>".$excerpt."</div>" : "";and delete this line:
$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";If you want to “replace” the original parent theme shortcode with your child theme please follow the instructions here: http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Cheers!
PeterApril 29, 2014 at 1:41 pm #257620In reply to: Assigning ID to button Element
Hi!
I’m not sure why the code doesn’t work for you but do you mind if we ask why you need an id to the button? Maybe knowing why you need it can give us a better understanding on how to approach the problem. You can actually edit the config-templatebuilder > avia-shortcodes > slideshow.php and look for the button code on line 792:
$button_html .= "<a href='{$link}' {$blank} class='avia-slideshow-button avia-button avia-color-{$button_color} {$button_count}' data-duration='800' data-easing='easeInOutQuad'>";You can add the id there but every button generated on the full screen slider will have the same id which might cause some conflict.
Regards,
IsmaelApril 18, 2014 at 11:37 am #253113In reply to: Subtitles in excerpt, blog grid
Hi Victor!
Thank you for using the theme!
I’m sorry but this is beyond the scope of support and is not a theme related issue. You might need to find a plugin or hire a freelance developer to add the feature for you. You can find the blog grid code on config-templatebuilder > avia-shortcodes > postslider.php. Find this code on line 374. This is the post date, comment count container. Maybe you can use custom fields to replace the output.
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>"; }I hope that helps.
Regards,
IsmaelApril 14, 2014 at 3:54 pm #251154In reply to: Featured image and blog author
Hi Dan!
Thank you for using the theme!
1.) I’m sorry but can you please elaborate the issue?
2.) You can find the post thumbnail code on loop-index.php, find this code on 165:
else if(strpos($blog_style, 'small') !== false) { $blog_meta_output = "<a href='{$link}' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>"; }Regards,
IsmaelMarch 26, 2014 at 9:15 am #243202In reply to: How to add a class to a button?
Hey Chris!
Open up wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttons.php and replace:
$output .= "<a href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";with
$output .= "<a href='{$link}' class='avia-button some_class ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";and instead of some_class insert your class. If you don’t want to modify the parent theme copy the wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttons.php file to your child theme and follow the instructions here: https://kriesi.at/support/topic/add-elements-to-visual-composer/
Best regards,
PeterMarch 16, 2014 at 4:11 am #238172Hey!
You can find the avia post navigation functions on functions-enfold.php:
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; $tc1 = $tc2 = ""; $link = get_permalink($entry->ID); $image = get_the_post_thumbnail($entry->ID, 'thumbnail'); $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'>".avia_backend_truncate(get_the_title($entry->ID),75," ")."</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; } }Best regards,
IsmaelMarch 5, 2014 at 8:48 am #232595In reply to: how to open portfolio custom link in a new window?
Hi honesty1993!
Thank you for using the theme. I hope you’re doing well today.
Please edit config-templatebuilder > avia_shortcodes > portfolio.php, finds this code on line 623:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";Replace it with:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a target='_blank 'href='{$link}'>".$entry->post_title."</a></h2>";Regards,
IsmaelMarch 4, 2014 at 1:53 pm #232186In reply to: Closing the ajax portfolio
Hi Benjaminlivingthebrand!
Edit config-templatebuilder > avia_shortcodes > portfolio.php, find this code on line 623:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";Replace it with:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='#close'>".$entry->post_title."</a></h2>";Cheers!
IsmaelFebruary 12, 2014 at 10:44 am #222676In reply to: Enfold Update to 2.5
Hi!
I think I found the bug. We’ll correct it with the next update. For a quick fix open up enfold/config-templatebuilder/avia-shortcodes/iconbox.php and replace
$display_char_wrapper['start'] = "a href='{$linktitle}' title='".esc_attr($linktitle)."' {$blank}";with
$display_char_wrapper['start'] = "a href='{$link}' title='".esc_attr($linktitle)."' {$blank}";Cheers!
PeterFebruary 10, 2014 at 9:34 am #221590In reply to: Customization of Grid Layout
Hi Yeas!
You can edit config-templatebuilder > avia-shortcodes > postslider.php, look for this code to modify the look of the blog grid layout:
$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>'; 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>"; } $markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false)); $output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : ""; $output .= "</div>"; $output .= '<footer class="entry-footer"></footer>'; $output .= "</article>";Or you can add something like this on Quick CSS or custom.css to align the grid image to the left:
.slide-image { width: 30%; margin-right: 10px; float: left; }Regards,
IsmaelFebruary 10, 2014 at 9:14 am #221578In reply to: Link Post Format
Hey!
Open up wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php and replace
if($format == 'link') { $current_post = array(); $current_post['content'] = $entry->post_content; $current_post['title'] = $entry->post_title; if(function_exists('avia_link_content_filter')) { $current_post = avia_link_content_filter($current_post); } $link = $current_post['url']; }with
$linktarget = ''; if($format == 'link') { $current_post = array(); $current_post['content'] = $entry->post_content; $current_post['title'] = $entry->post_title; if(function_exists('avia_link_content_filter')) { $current_post = avia_link_content_filter($current_post); } $link = $current_post['url']; $linktarget = 'target="_blank"'; }and
$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>';with
$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}' {$linktarget} 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}' {$linktarget} title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : ''; $output .= '</header>';Best regards,
PeterFebruary 7, 2014 at 9:40 am #220816In reply to: Hover on Blog Icon
Hi!
You can edit includes > loop-index.php, find this code on line 113:
$blog_meta_output = "<a href='{$link}' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>";Replace it with this code:
$blog_meta_output = "<a href='{$link}' class='small-preview' title=''>".$slider.$icon."</a>";Cheers!
IsmaelJanuary 30, 2014 at 12:57 am #216702In reply to: featured image default photo
Hi saundra!
1.) Are you talking about the image placeholder? You can edit config-templatebuilder > avia-shortcodes > postslider.php, find this code on line 305:
$thumbnail = "<span class=' fallback-post-type-icon' ".av_icon_string($format)."></span><span class='slider-fallback-image'>{{thumbnail}}</span>";2.) Edit js > avia.js, find this code on line 54:
//activates the prettyphoto lightbox $(container).avia_activate_lightbox({callback:'avia_lightbox_callback'});Replace it with:
//activates the prettyphoto lightbox //$(container).avia_activate_lightbox({callback:'avia_lightbox_callback'});3.) This is possible but it won’t look as good as the original layout. Edit postslider.php again, find this code on line 366:
$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";Cut it then place it below this code on line 388:
$markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false));Cheers!
IsmaelJanuary 20, 2014 at 3:49 pm #212262In reply to: head title of in ajax-portfolio preview
Hey yucozt!
If you want to remove the title open up /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php and delete
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";Regards,
PeterJanuary 20, 2014 at 3:18 pm #212241In reply to: Partner/Logo Element title under elements
Hey!
If I am not mistaken, you can replace the code above with this:
$output .= !empty($link) ? "<a href='{$link}' data-rel='slide-".avia_partner_logo::$slider."' class='slide-image' title='{$linktitle}' {$blank} >{$img}</a>" : $img; $output .= "<a href='{$link}' title='{$linktitle}' {$blank}><div class='logo-title'>".$hover."</div></a>"; $output .= "</div>";Cheers!
IsmaelJanuary 18, 2014 at 9:57 am #211536Topic: Icon Box Title link bug I think.
in forum Enfoldcaesss
ParticipantWe are seeing code in the “title” tag of the icon link. I think someone else reported this already Icon Box Title link but I don’t think the answer was correct. It is not a plug-in conflict, it is an issue in the code.
iconbox.php lines 165-169 look like this:
case 'both': $title = "<a href='$link' title='".esc_attr($title)."' $blank>$title</a>"; $display_char_wrapper['start'] = "a href='{$link}' title='".esc_attr($title)."' {$blank}"; $display_char_wrapper['end'] = 'a'; break;As you can see the $title variable in 166 gets assigned the string and then you use that same variable in the “title” tag again in line 167. You are expecting to grab the value passed to the function but you are actually getting the reassigned value of $title. And that is what we are seeing.
I simple modified the code to look like this:
case 'both': $mytitlecopy = $title; $title = "<a href='$link' title='".esc_attr($title)."' $blank>$title</a>"; $display_char_wrapper['start'] = "a href='{$link}' title='".esc_attr($mytitlecopy)."' {$blank}"; $display_char_wrapper['end'] = 'a'; break;I’m not sure that’s the best way to fix it but it worked for me. BTW, great work on the template it.
-
This reply was modified 11 years, 3 months ago by
-
AuthorSearch Results
-
Search Results
-
I need to display some kind of posts not in single pages, but to display them in an archive-like page with a collapsible list. Therefore I had to make some modifications in magazine.php. My modifications:
function render_entry($entry, $style) { $output = ""; $image = get_the_post_thumbnail( $entry->ID, $this->atts['image_size'][$style] ); $link = get_permalink($entry->ID); /* START MODIFIKATION ----------------------------------- // $titleAttr = "title='".__('Link to:','avia_framework')." ".the_title_attribute('echo=0')."'"; // DELETED end delete, continue modification: ---------------------- */ $titleAttr = "title='".get_the_title($entry->ID)."'"; // new $titleid = $entry->ID; // new if( get_the_ID() == '2' ) { // new ( if magazine at hompage ) $title = "<a href='http://www.timegolf.net/_news/#news-".$titleid."?news=".$titleid."' {$titleAttr}>".get_the_title($entry->ID)."</a>"; // new } // new else { // new interrupt modification: -------------------------------------- */ $title = "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a>"; end interrupt , continue modification: ---------------- */ } // new END MODIFICATION---------------------------------------- */The page works properly, if it is called by a simple link (“/page/”) or with only one attribute behind the url (/page/#anchor or /?get_var=id).
Screenhot:

Unfortunately I need both: hash tags for deep-linking to the specific item AND the id, to open the called up item by javascript. In that case the second tab in the left column loses its position and clicking at it does not work anymore.
Screenshots:


I have no idea, how to solve this tricky problem.
Please help me!
GünterWe are seeing code in the “title” tag of the icon link. I think someone else reported this already Icon Box Title link but I don’t think the answer was correct. It is not a plug-in conflict, it is an issue in the code.
iconbox.php lines 165-169 look like this:
case 'both': $title = "<a href='$link' title='".esc_attr($title)."' $blank>$title</a>"; $display_char_wrapper['start'] = "a href='{$link}' title='".esc_attr($title)."' {$blank}"; $display_char_wrapper['end'] = 'a'; break;As you can see the $title variable in 166 gets assigned the string and then you use that same variable in the “title” tag again in line 167. You are expecting to grab the value passed to the function but you are actually getting the reassigned value of $title. And that is what we are seeing.
I simple modified the code to look like this:
case 'both': $mytitlecopy = $title; $title = "<a href='$link' title='".esc_attr($title)."' $blank>$title</a>"; $display_char_wrapper['start'] = "a href='{$link}' title='".esc_attr($mytitlecopy)."' {$blank}"; $display_char_wrapper['end'] = 'a'; break;I’m not sure that’s the best way to fix it but it worked for me. BTW, great work on the template it.
