Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter adz13091982

    (@adz13091982)

    Should have said, the site link is https://www.bellasdogtreats.co.uk

    Plugin Author Micah Wood

    (@woodent)

    Add this to your theme’s functions.php file:

    function promoslider_display_linked_excerpt($values){
        global $post; extract($values);
        // If there is no excerpt, don't do anything
        if( !$excerpt ) return;
        // If add code is being displayed, don't show the excerpt
        if( get_post_meta($post->ID, '_promo_slider_show_ad_code', TRUE) ) return;
        // Otherwise, if there is an excerpt, display it
        switch( $display_excerpt ){
            case 'excerpt': ?>
    	    <div class="promo_slider_excerpt"><a href="<?php echo $destination_url; ?>" target="<?php echo $target; ?>"><?php echo $excerpt; ?></a></div><?php
    	    break;
    	default:
    	    return;
        }
    }
    add_action('promoslider_content', 'promoslider_display_linked_excerpt');
    remove_action('promoslider_content', 'promoslider_display_excerpt');

    Just make sure you have enabled the display of the excerpt in your slider options.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Promotion Slider] Exerpt Clickable’ is closed to new replies.