-
AuthorSearch Results
-
June 11, 2013 at 1:09 am #123905
In reply to: Blog – Date to the left
Hi,
On Settings > General, set the Date Format to custom then place the text “F j” which means Month and Date.
Open includes > loop-index.php, find this code:
$link = get_author_posts_url($post->post_author);At the bottom place this code:
$date = get_the_date();Then find this code:
echo "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>Replace it with:
echo "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$date."</span></a>You can style the date text using .round-container class.
Regards,
Ismael
June 5, 2013 at 5:52 am #123139In reply to: Testimonial website link
Yes, in wp-contentthemesenfoldconfig-templatebuilderavia-shortcodestestimonials.php replace
if($link) $output .= " – <a class='avia-testimonial-link' href='{$link}'>{$linktext}</a>";with
if($link) $output .= " – <a target='_blank' class='avia-testimonial-link' href='{$link}'>{$linktext}</a>";May 31, 2013 at 5:09 am #122262In reply to: Portfolio Issues
Hi,
Are you using the Portfolio Grid?
You can edit config-templatebuilder > avia-shortcodes > portfolio.php, find this code
Line 240:
$output .= "<a href='{$link}' data-rel='grid-".avia_post_grid::$grid."' class='grid-image' title=''>".get_the_post_thumbnail( $the_id, $image_size )."</a>";Replace it with:
$output .= "<a target='_blank' href='{$link}' data-rel='grid-".avia_post_grid::$grid."' class='grid-image' title=''>".get_the_post_thumbnail( $the_id, $image_size )."</a>";Line 242:
$output .= "<h3 class='grid-entry-title'><a href='{$title_link}' title='".esc_attr(strip_tags($entry->post_title))."'>".$entry->post_title."</a></h3>";Replace with:
$output .= "<h3 class='grid-entry-title'><a target='_blank' href='{$title_link}' title='".esc_attr(strip_tags($entry->post_title))."'>".$entry->post_title."</a></h3>";Regards,
Ismael
May 29, 2013 at 2:15 am #117991In reply to: How to remove featured image inside single post?
Hi,
Can you give us a link to your website?
Please check functions.php. Do you have this line of code? 281-321
if(!function_exists('avia_post_nav'))
{
function avia_post_nav($same_category = false)
{
if(!is_singular() || is_post_type_hierarchical(get_post_type())) return;
//if(get_post_type() === 'portfolio') return;
global $avia_config;
$same_category = apply_filters('avia_post_nav_categories', $same_category);
$entries['prev'] = get_previous_post($same_category);
$entries['next'] = get_next_post($same_category);
$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'>".$avia_config['font_icons'][$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;
//add this line for fake. never gets executed but makes the theme pass Theme check
if(1==2){paginate_links(); posts_nav_link(); next_posts_link(); previous_posts_link();}
}
}Regards,
Ismael
May 28, 2013 at 2:46 am #121537In reply to: Open image hyperlink in new tab or window
Hi,
You have a lot of options to open an image to a new window.
1.) Insert a text block then add an html tag. Something like this
<a target="_blank" href="YOURURLHERE"><img src="YOURIMAGEHERE" /></a>2.) You can edit config-templatebuilder > avia-shortcodes > image.php then find this code
$output.= "<a href='{$link}' class='avia_image ".$meta['el_class'].$this->class_by_arguments('align' ,$atts, true)."'><img class='avia_image {$class}' src='{$src}' alt='' /></a>";Replace it with
$output.= "<a target='_blank' href='{$link}' class='avia_image ".$meta['el_class'].$this->class_by_arguments('align' ,$atts, true)."'><img class='avia_image {$class}' src='{$src}' alt='' /></a>";3.) This is the rendered html tag when using the Image shortcode via AviaBuilder. You can copy and paste it manually. Change the anchor tag link and the image url.
<a href="http://www.yourlinkhere.com" class="avia_image avia-builder-el-49 el_after_av_slideshow_full avia-builder-el-no-sibling avia-align-center "><img class="avia_image avia_animated_image avia_animate_when_almost_visible right-to-left avia_start_animation" src="http://localhost/kriesi/enfold/wp-content/uploads/2011/12/imac_big_demo-300x180.png" alt=""><span class="image-overlay overlay-type-extern" style="opacity: 0; left: 0px; top: 0px; display: block; height: 180px; width: 300px;"><span class="image-overlay-inside"></span></span></a>Regards,
Ismael
May 25, 2013 at 8:07 am #121089In reply to: Avia Layout Builder – target='_blank' image
You’d need to modify the shortcode file. Open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesimage.php and replace
$output.= "<a href='{$link}' class='avia_image ".$meta['el_class'].$this->class_by_arguments('align' ,$atts, true)."'><img class='avia_image {$class}' src='{$src}' alt='{$alt}' title='{$title}' /></a>";with
$output.= "<a href='{$link}' target='_blank' class='avia_image ".$meta['el_class'].$this->class_by_arguments('align' ,$atts, true)."'><img class='avia_image {$class}' src='{$src}' alt='{$alt}' title='{$title}' /></a>";May 25, 2013 at 4:56 am #120823In reply to: Need the company names/links to open in a new window
Hi,
Open config-templatebuilder > avia-shortcodes > testimonials.php, find this code
//final output
$output .= "<div class='avia-testimonial {$class}'>";
if($grid) $output .= $avatar;
$output .= "<div class='avia-testimonial-content'>";
$output .= wpautop(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'>{$name}</strong>";
if($subtitle) $output .= "<span class='avia-testimonial-subtitle'>{$subtitle}</span>";
if($link) $output .= " – <a class='avia-testimonial-link' href='{$link}'>{$linktext}</a>";
$output .= "</div>";
$output .= "</div>";
$output .= "</div>";Replace it with
//final output
$output .= "<div class='avia-testimonial {$class}'>";
if($grid) $output .= $avatar;
$output .= "<div class='avia-testimonial-content'>";
$output .= wpautop(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'>{$name}</strong>";
if($subtitle) $output .= "<span class='avia-testimonial-subtitle'>{$subtitle}</span>";
if($link) $output .= " – <a class='avia-testimonial-link' target='_blank' href='{$link}'>{$linktext}</a>";
$output .= "</div>";
$output .= "</div>";
$output .= "</div>";Cheers,
Ismael
-
AuthorSearch Results
