Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #310256

    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,
    Josue

    #310791

    Awesome! Thank you so much. This is the best support forum I’ve ever visited. Quick and correct replies.

    #310792

    You are welcome, glad to help :)

    Regards,
    Josue

    #871604

    Hello,

    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.2

    Many thanks!

    #872199

    Hi,

    Please, create a new thread with your info (website link and WP credentials) this is a too old thread.
    Best regards,
    John Torvik

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.