Tagged: Blog, postslider, title
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
August 27, 2014 at 8:13 pm #310044
I would like to place the title of my posts above the image when it comes to the post slider.. Can someone pleas help me out.
August 28, 2014 at 7:04 am #310256Hi 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 29, 2014 at 6:07 am #310791Awesome! Thank you so much. This is the best support forum I’ve ever visited. Quick and correct replies.
August 29, 2014 at 6:18 am #310792You are welcome, glad to help :)
Regards,
JosueNovember 2, 2017 at 11:25 am #871604Hello,
Can you please tell a way to do this in Child theme? I am trying to change code but it is not taking from child theme.
WordPress version 4.8.3
Enfold version 4.2Many thanks!
November 3, 2017 at 3:49 pm #872199Hi,
Please, create a new thread with your info (website link and WP credentials) this is a too old thread.
Best regards,
John Torvik -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.