-
AuthorSearch Results
-
August 23, 2016 at 7:57 pm #97893
In reply to: Upgrade to pro left a mess to clean up.
Dan Koenig
MemberThanks…Ads are gone now…what do I use to add back my original Slider images and activate them and the Featured content boxes. Is this the Theme Options part of the Appearance=>Theme Options area…this seems to override the Customize options when used…there appears to be two areas to set up the features. The latter is more familiar to me…but it changes back to the defaults when I try to use it. The upgrade wiped away my choices for the slider. I remember it was easier to use before…but that was two years ago when I set up this original site and I have used several other vendor template options since, including the non-pro version for other sites I have designed…why does this seem so confusing? …Dr Dan CampTimlo.org
August 23, 2016 at 11:41 am #97855In reply to: Upgrade to pro left a mess to clean up.
Mahesh
Member@ddk: Thank you for upgrading to Pro version. The upgrade should have automatically migrated all the settings from Free to Pro unless you are using child theme. So, it seems most of the setting are changed to defaults (Slider, Promotion Headline, Featured Content).
For these options, please use Customizer (Dashboard=> Appearance=> Customize) instead Theme Options. For slider, go to Dashboard=> Appearance=> Customize=> Featured Slider=> Slider Options.
For disabling Promotion headline (Ads), go to Dashboard=> Appearance=> Customize=> Theme Options=> Promotion Headline and select Disable in
Enable Promotion Headline on drop-down option.
And removing/modifying Featured Content (mountain image), go to Dashboard=> Appearance=> Customize=> Theme Options=> Homepage Featured Content and select Disable in Enable Content drop-down option.
Hope this helps. Please follow along the theme instruction : https://catchthemes.com/theme-instructions/catch-kathmandu-pro/
Let me know if any problem.Regards,
MaheshAugust 22, 2016 at 9:39 am #97765In reply to: Feature Slider Excerpt and Images
Mahesh
Member@latinoliteratures:
Hi Fabio:Sorry for the late reply. Working with child theme or working with code is kinda tricky. A small character can break the whole site and make it inaccessible. I highly recommend you to do the modifications only if you are familiar with programming or else hire a customizer.
Is the theme working now? You do have option to show content in Featured Content but not in the Featured Slider. You can use Custom CSS for hiding the excerpt in the Featured Slider.Let me know further.
Regards,
MaheshAugust 20, 2016 at 7:40 am #97665In reply to: More than 20 posts in slider
Pratik
Member@kawr:
If you try it from Appearance=> Theme Options=> FEATURED POST SLIDER=> Slider Options, you should be able to add as many as you like. Let me know how it goes.Regards,
PratikAugust 20, 2016 at 3:03 am #97653In reply to: Feature Slider Excerpt and Images
Fabio
MemberI WENT AHEAD AND USED THE PLUGIN YOU RECOMMENDED FOR BUILDING CHILD THEMES. I MADE ONE FOR FABULOUS FLUID PRO.
//THE FOLLOWING IS MY STYLE.CSS FILE//
/*
Theme Name: FabulousFluid-Pro-Child
Description:
Author: admin
Template: fabulous-fluid-pro(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
*///THE FOLLOWING IS MY FUNCTIONS.PHP FILE AFTER I INPUT YOUR CODE//
<?php
//
// Recommended way to include parent theme styles.
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
//
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘parent-style’)
);
}
//
// Your code goes below
//
function fabulous_fluid_page_slider() {
$quantity = apply_filters( ‘fabulous_fluid_get_option’, ‘featured_slide_number’ );$excerpt_more_text = apply_filters( ‘fabulous_fluid_get_option’, ‘excerpt_more_text’ );
global $post;
$output = ”;
$number_of_page = 0; // for number of pages
$page_list = array(); // list of valid page ids//Get number of valid pages
for( $i = 1; $i <= $quantity; $i++ ){
if( apply_filters( ‘fabulous_fluid_get_option’, ‘featured_slider_page_’ . $i ) && apply_filters( ‘fabulous_fluid_get_option’, ‘featured_slider_page_’ . $i ) > 0 ){
$number_of_page++;$page_list = array_merge( $page_list, array( apply_filters( ‘fabulous_fluid_get_option’, ‘featured_slider_page_’ . $i ) ) );
}}
if ( !empty( $page_list ) && $number_of_page > 0 ) {
$get_featured_posts = new WP_Query( array(
‘posts_per_page’ => $quantity,
‘post_type’ => ‘page’,
‘post__in’ => $page_list,
‘orderby’ => ‘post__in’
));$i=0;
while ( $get_featured_posts->have_posts() ) {
$get_featured_posts->the_post();$i++;
$title_attribute = the_title_attribute( array( ‘echo’ => false ) );
$classes = ‘page page-‘ . $post->ID . ‘ slider-box’;
if ( $i == 1 ) {
$classes .= ‘ first’;
}//Default value if there is no featurd image or first image
$image_url = get_template_directory_uri() . ‘/images/no-featured-image-1680×720.jpg’;
$image = ‘
‘;if ( has_post_thumbnail() ) {
$image = get_the_post_thumbnail( $post->ID, ‘fabulous-fluid-slider’, array( ‘title’ => $title_attribute, ‘alt’ => $title_attribute, ‘class’ => ‘wp-post-image’ ) );$image_url = get_the_post_thumbnail_url( $post->ID, ‘fabulous-fluid-slider’ );
}
else {
//Get the first image in page, returns false if there is no image
$first_image = fabulous_fluid_get_first_image( $post->ID, ‘fabulous-fluid-slider’, array( ‘title’ => $title_attribute, ‘alt’ => $title_attribute ) );//Set value of image as first image if there is an image present in the page
if ( ” != $first_image ) {
$image = $first_image;$image_url = fabulous_fluid_get_first_image( $post->ID, ‘fabulous-fluid-slider’, ”, true );
}
}$tag = “a”;
$content = get_the_excerpt();
$content = preg_replace(“/<\\/?” . $tag . “(.|\\s)*?>/”, null,$content);$output .= $image;
$output .= ‘
<div class=”caption”>
<span class=”vcenter”>
‘ . the_title( ‘<span class=”entry-title”>’,'</span>’, false ) . ‘<span class=”entry-content”>’ . wp_kses_post( $content ) . ‘</span>
<span class=”more”>’ . esc_html( $excerpt_more_text ) . ‘</span>
</span><!– .vcenter –>
</div><!– .caption –>
<!– .slider-box –>’;
} //endwhilewp_reset_query();
}
return $output;
}// I ALSO ADDED THE EXTRA CSS TO THE CUSTOM CSS BOX UNDER THEME OPTIONS //
#feature-slider .entry-content span.readmore {
display: none;
}//AND THE HTML KEEPS APPEARING IN THE FEATURE POST SLIDER.//
August 18, 2016 at 3:10 pm #97533In reply to: Catch Everest- Font & Price tables
Mahesh
Member@voila2014: Thank you for using our theme, we really appreciate it. For exact same layout, Catch Everest Pro is the best option I guess. It does have more functionalities that the free version like: More Options in Slider, Featured Content, Layouts, Colors, Fonts etc. However, the theme doesn’t have the Pricing table. May be you can use an appropriate plugin from WordPress repo for that one.
Regards,
MaheshAugust 17, 2016 at 4:21 pm #97450In reply to: Move site title & description
Mahesh
Member@paul-mac:
Hi Paul,For this, you’ll need to create a child theme. You can find more details on creating child theme HERE. Then in your child theme’s functions.php add the following codes:
function catchkathmandu_child_move_title_below_slider_header_image() { remove_action( 'catchkathmandu_before_main', 'catchkathmandu_slider_display', 10 ); add_action( 'catchkathmandu_before_hgroup_wrap', 'catchkathmandu_slider_display', 15 ); remove_action( 'catchkathmandu_before', 'catchkathmandu_featured_image_display', 10 ); add_action( 'catchkathmandu_before_hgroup_wrap', 'catchkathmandu_featured_overall_image', 20 ); } add_action( 'init', 'catchkathmandu_child_move_title_below_slider_header_image' );Regards,
MaheshAugust 14, 2016 at 11:21 am #97229In reply to: Where is slider?
Pratik
Member@Len,
For refund related matter please contact our sales team directly. However, Pro version does allow you to add several images of your own as Featured Slider. There must be issues with the server or conflict with other plugin. Please try deactivating the plugins and see if the problem occurs.You need to follow the instructions here
Let me know if you need further assistance.
Regards,
PratikAugust 13, 2016 at 10:26 am #97191In reply to: Slider Images Don't Appear In Order
Pratik
MemberHi Orlando,
This is because by default, slider loads the images that are loaded first so that there slider loads up quickly.
To make slider load in order, goto Appearance=> Customize=> Featured Slider and in Image Loader option either select Wait or False
Save your settings.
Let me know how it goes.
Regards,
PratikAugust 13, 2016 at 6:44 am #97181In reply to: Text Slider
mayapour
MemberSorry I find it…
I did a display on #featured-content #featured-heading {
because I don’t want the Title of the page on the top on the page.But when I display the title page, it display also the slider text 🙁
How can I display the title page but keep the title slider text ?
Thanks
August 9, 2016 at 10:57 am #96860In reply to: Where are slider images/text edited?
Mahesh
Member@uliu: Clean Business theme has two types of slider,
1. Demo Featured Slider : Content / Images cannot be edited
2. Featured Page Slider : Displays Pages content and Featured Image as Slider. (The content you put in page will be displayed here).
Clean Business Free version is limited to these two options. If you want to have custom Image, Content and Links, I recommend you to upgrade to Pro version. There is already Featured Image Slider option in Pro version.
https://catchthemes.com/themes/clean-business-pro/Regards,
MaheshAugust 9, 2016 at 10:50 am #96859In reply to: Featured Image Slider
Mahesh
Member@rheja:
Hi Jap,For this, you’ll need to create a child theme. You can find more on creating child theme HERE. Then in you child theme’s functions.php add the following codes:
function fullframe_featured_slider() { global $post, $wp_query; //fullframe_flush_transients(); // get data value from options $options = fullframe_get_theme_options(); $enableslider = $options['featured_slider_option']; $sliderselect = $options['featured_slider_type']; $imageloader = isset ( $options['featured_slider_image_loader'] ) ? $options['featured_slider_image_loader'] : 'true'; // Get Page ID outside Loop $page_id = $wp_query->get_queried_object_id(); // Front page displays in Reading Settings $page_on_front = get_option('page_on_front') ; $page_for_posts = get_option('page_for_posts'); if ( $enableslider == 'entire-site' || ( ( is_front_page() || ( is_home() && $page_for_posts != $page_id ) ) && $enableslider == 'homepage' ) ) { if( ( !$fullframe_featured_slider = get_transient( 'fullframe_featured_slider' ) ) ) { echo '<!-- refreshing cache -->'; $fullframe_featured_slider = ' <section id="feature-slider"> <div class="wrapper"> <div class="cycle-slideshow" data-cycle-log="false" data-cycle-pause-on-hover="true" data-cycle-swipe="true" data-cycle-random="true" data-cycle-auto-height=container data-cycle-fx="'. esc_attr( $options['featured_slide_transition_effect'] ) .'" data-cycle-speed="'. esc_attr( $options['featured_slide_transition_length'] ) * 1000 .'" data-cycle-timeout="'. esc_attr( $options['featured_slide_transition_delay'] ) * 1000 .'" data-cycle-loader="'. esc_attr( $imageloader ) .'" data-cycle-slides="> article" > <!-- prev/next links --> <div class="cycle-prev"></div> <div class="cycle-next"></div> <!-- empty element for pager links --> <div class="cycle-pager"></div>'; // Select Slider if ( $sliderselect == 'demo-featured-slider' && function_exists( 'fullframe_demo_slider' ) ) { $fullframe_featured_slider .= fullframe_demo_slider( $options ); } else if ( $sliderselect == 'featured-post-slider' && function_exists( 'fullframe_post_slider' ) ) { $fullframe_featured_slider .= fullframe_post_slider( $options ); } elseif ( $sliderselect == 'featured-page-slider' && function_exists( 'fullframe_page_slider' ) ) { $fullframe_featured_slider .= fullframe_page_slider( $options ); } elseif ( $sliderselect == 'featured-category-slider' && function_exists( 'fullframe_category_slider' ) ) { $fullframe_featured_slider .= fullframe_category_slider( $options ); } elseif ( $sliderselect == 'featured-image-slider' && function_exists( 'fullframe_image_slider' ) ) { $fullframe_featured_slider .= fullframe_image_slider( $options ); } $fullframe_featured_slider .= ' </div><!-- .cycle-slideshow --> </div><!-- .wrapper --> </section><!-- #feature-slider -->'; set_transient( 'fullframe_featured_slider', $fullframe_featured_slider, 86940 ); } echo $fullframe_featured_slider; } }Regards,
MaheshAugust 6, 2016 at 3:36 pm #96703In reply to: New post changed featured content and slider
Pratik
MemberI checked your site and you are using Free version of Featured Content and Slider.
The free version have Featured Page Content and Featured Page Slider so adding new posts should not hamper them at all.They are loading fine when I checked.
August 6, 2016 at 12:56 pm #96696In reply to: Image slider
Pratik
MemberHI JPSSAU,
Custom Image slider is not present in Catch Responsive Free theme. If you want custom Image slider + a lot of other features, it would be better to upgrade to Pro version.
Checkout other features: https://catchthemes.com/theme-instructions/catch-responsive-pro/Free version has featured page sliders, which means, you can add featured images to pages and use them as sliders. For this, please follow the instructions at https://catchthemes.com/theme-instructions/catch-responsive/#featured-slider
Regards,
PratikAugust 5, 2016 at 10:18 am #96632In reply to: problems with clean business pro theme
Mahesh
Member@agenciabrushup: Thank you for using Clean Business Pro theme.
Sorry, we don’t have the video tutorial for that yet. On the first one TOEFL, you have managed to use the Image Slider.
For the same in the second one IELTS too, go to Dashboard=> Appearance=> Customize=> Featured Slider and select Featured Image Slider in Select Slider Type dropdown. Then some option Featured Slide # will appear, put your desired Image and Content there and click Save & Publish
Hope this helps. Let me know if any problem.
Note: You have posted the support in the Catch Adaptive Pro theme category, please post in appropriate theme category.
Regards,
MaheshAugust 3, 2016 at 4:47 pm #96547In reply to: adding a post slider
Mahesh
Member@bebou:
Hi Beata,Catch Adaptive Free has limited options. You can only select Pages or Demo content as Featured slider. For other options such as Posts, Category or Custom/Image as Featured Slider, I recommend you to upgrade to Pro version.
Regards,
MaheshAugust 3, 2016 at 11:50 am #96532In reply to: white screen after installing plugin
RMS
MemberHI Mahesh – thanks for your response.
There is no space at the beginning of the files. Header.php has multiple <?php tags – I can’t tell if there is a problem with any of the other tags.
Code below:
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id=”main”>
*
* @package Catch Themes
* @subpackage Adventurous
* @since Adventurous 1.0
*/
?>
<!DOCTYPE html>
<!–[if IE 6]>
<html id=”ie6″ <?php language_attributes(); ?>>
<![endif]–>
<!–[if IE 7]>
<html id=”ie7″ <?php language_attributes(); ?>>
<![endif]–>
<!–[if IE 8]>
<html id=”ie8″ <?php language_attributes(); ?>>
<![endif]–>
<!–[if !(IE 6) | !(IE 7) | !(IE 8) ]><!–>
<html <?php language_attributes(); ?>>
<!–<![endif]–>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<link rel=”profile” href=”http://gmpg.org/xfn/11″ />
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php wp_head(); ?>
</head><body <?php body_class(); ?>>
<?php
/**
* adventurous_before hook
*/
do_action( ‘adventurous_before’ ); ?><div id=”page” class=”hfeed site”>
<?php
/**
* adventurous_before_header hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* adventurous_header_top 10
*/
do_action( ‘adventurous_before_header’ ); ?><header id=”masthead”>
<?php
/**
* adventurous_before_hgroup_wrap hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* adventurous_promotion_display 20
*/
do_action( ‘adventurous_before_hgroup_wrap’ ); ?><div id=”hgroup-wrap” class=”container”>
<?php
/**
* adventurous_hgroup_wrap hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* adventurous_header_image 10
* adventurous_header_right 20
*/
do_action( ‘adventurous_hgroup_wrap’ ); ?></div><!– #hgroup-wrap –>
<?php
/**
* adventurous_after_hgroup_wrap hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* adventurous_homepage_featured_position 10
*/
do_action( ‘adventurous_after_hgroup_wrap’ ); ?></header><!– #masthead .site-header –>
<?php
/**
* adventurous_after_header hook
*/
do_action( ‘adventurous_after_header’ ); ?><div id=”main-wrapper”>
<?php
/**
* adventurous_before_main hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* adventurous_featured_overall_image value after header 5
* adventurous_secondary_menu 10
* content_sidebar_check 20
* adventurous_slider_display 40
* adventurous_homepage_headline value after slider 60
* adventurous_homepage_featured_display 80
*/
do_action( ‘adventurous_before_main’ ); ?><?php
/**
* adventurous_main hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* adventurous_main_wrapper 10
*/
do_action( ‘adventurous_main’ ); ?><?php
/**
* adventurous_content_sidebar hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* adventurous_content_sidebar_wrapper 10
* adventurous_breadcrumb_display 20
*/
do_action( ‘adventurous_content_sidebar’ ); ?>July 28, 2016 at 8:10 pm #96192In reply to: Slider – remove links
Roland
MemberHi Mahesh,
I’m afraid I can’t get this to work, perhaps I’ve inserted it incorrectly into the child theme functions.php? Here’s the file:
<?php /** * Child Theme functions and definitions * */ add_action( 'wp_enqueue_scripts', 'catchkathmandu_child_enqueue_styles' ); function catchkathmandu_child_enqueue_styles() { wp_enqueue_style( 'catchkathmandu-parent-style', get_template_directory_uri() . '/style.css' ); } function catchkathmandu_post_sliders() { //delete_transient( 'catchkathmandu_post_sliders' ); global $post; global $catchkathmandu_options_settings; $options = $catchkathmandu_options_settings; if( ( !$catchkathmandu_post_sliders = get_transient( 'catchkathmandu_post_sliders' ) ) && !empty( $options[ 'featured_slider' ] ) ) { echo '<!-- refreshing cache -->'; $catchkathmandu_post_sliders = ' <div id="main-slider" class="container"> <section class="featured-slider">'; $get_featured_posts = new WP_Query( array( 'posts_per_page' => $options[ 'slider_qty' ], 'post__in' => $options[ 'featured_slider' ], 'orderby' => 'post__in', 'ignore_sticky_posts' => 1 // ignore sticky posts )); $i=0; while ( $get_featured_posts->have_posts()) : $get_featured_posts->the_post(); $i++; $title_attribute = apply_filters( 'the_title', get_the_title( $post->ID ) ); $excerpt = get_the_excerpt(); if ( $i == 1 ) { $classes = 'post postid-'.$post->ID.' hentry slides displayblock'; } else { $classes = 'post postid-'.$post->ID.' hentry slides displaynone'; } $catchkathmandu_post_sliders .= ' <article class="'.$classes.'"> <figure class="slider-image"> '. get_the_post_thumbnail( $post->ID, 'slider', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ).' </figure> <div class="entry-container"> <header class="entry-header"> <h1 class="entry-title"> <a title="Permalink to '.the_title('','',false).'" href="' . get_permalink() . '">'.the_title( '<span>','</span>', false ).'</a> </h1> <div class="assistive-text">'.catchkathmandu_page_post_meta().'</div> </header>'; if( $excerpt !='') { $catchkathmandu_post_sliders .= '<div class="entry-content">'. $excerpt.'</div>'; } $catchkathmandu_post_sliders .= ' </div> </article><!-- .slides -->'; endwhile; wp_reset_query(); $catchkathmandu_post_sliders .= ' </section> <div id="slider-nav"> <a class="slide-previous"><</a> <a class="slide-next">></a> </div> <div id="controllers"></div> </div><!-- #main-slider -->'; set_transient( 'catchkathmandu_post_sliders', $catchkathmandu_post_sliders, 86940 ); } echo $catchkathmandu_post_sliders; } // catchkathmandu_post_sliders /** * Loading Parent theme stylesheet * */Kind regards,
Roland
July 28, 2016 at 1:29 pm #96177In reply to: Slider – remove links
Roland
MemberHi Mahesh,
Thanks for responding so quickly.
Unfortunately this doesn’t seem to work, probably because I have wrongly inserted your code. Here’s my functions.php with your code inserted:
<?php
/**
* Child Theme functions and definitions
*
*/
add_action( ‘wp_enqueue_scripts’, ‘catchkathmandu_child_enqueue_styles’ );
function catchkathmandu_child_enqueue_styles() {
wp_enqueue_style( ‘catchkathmandu-parent-style’, get_template_directory_uri() . ‘/style.css’ );
}
function catchkathmandu_post_sliders() {
//delete_transient( ‘catchkathmandu_post_sliders’ );global $post;
global $catchkathmandu_options_settings;
$options = $catchkathmandu_options_settings;if( ( !$catchkathmandu_post_sliders = get_transient( ‘catchkathmandu_post_sliders’ ) ) && !empty( $options[ ‘featured_slider’ ] ) ) {
echo ‘<!– refreshing cache –>’;$catchkathmandu_post_sliders = ‘
<div id=”main-slider” class=”container”>
<section class=”featured-slider”>’;
$get_featured_posts = new WP_Query( array(
‘posts_per_page’ => $options[ ‘slider_qty’ ],
‘post__in’ => $options[ ‘featured_slider’ ],
‘orderby’ => ‘post__in’,
‘ignore_sticky_posts’ => 1 // ignore sticky posts
));
$i=0; while ( $get_featured_posts->have_posts()) : $get_featured_posts->the_post(); $i++;
$title_attribute = apply_filters( ‘the_title’, get_the_title( $post->ID ) );
$excerpt = get_the_excerpt();
if ( $i == 1 ) { $classes = ‘post postid-‘.$post->ID.’ hentry slides displayblock’; } else { $classes = ‘post postid-‘.$post->ID.’ hentry slides displaynone’; }
$catchkathmandu_post_sliders .= ‘
<article class=”‘.$classes.'”>
<figure class=”slider-image”>
‘. get_the_post_thumbnail( $post->ID, ‘slider’, array( ‘title’ => esc_attr( $title_attribute ), ‘alt’ => esc_attr( $title_attribute ), ‘class’ => ‘pngfix’ ) ).’
</figure>
<div class=”entry-container”>
<header class=”entry-header”>
<h1 class=”entry-title”>
‘.the_title( ‘<span>’,'</span>’, false ).’
</h1>
<div class=”assistive-text”>’.catchkathmandu_page_post_meta().'</div>
</header>’;
if( $excerpt !=”) {
$catchkathmandu_post_sliders .= ‘<div class=”entry-content”>’. $excerpt.'</div>’;
}
$catchkathmandu_post_sliders .= ‘
</div>
</article><!– .slides –>’;
endwhile; wp_reset_query();
$catchkathmandu_post_sliders .= ‘
</section>
<div id=”slider-nav”>
<
>
</div>
<div id=”controllers”></div>
</div><!– #main-slider –>’;set_transient( ‘catchkathmandu_post_sliders’, $catchkathmandu_post_sliders, 86940 );
}
echo $catchkathmandu_post_sliders;
} // catchkathmandu_post_sliders/**
* Loading Parent theme stylesheet
*
*/Kind regards,
Roland
July 28, 2016 at 9:40 am #96155In reply to: Slider – remove links
Mahesh
Member@rolandallen: Thought you were using Category Slider. 🙂
For Post Slider, add the following code intead:function catchkathmandu_post_sliders() { //delete_transient( 'catchkathmandu_post_sliders' ); global $post; global $catchkathmandu_options_settings; $options = $catchkathmandu_options_settings; if( ( !$catchkathmandu_post_sliders = get_transient( 'catchkathmandu_post_sliders' ) ) && !empty( $options[ 'featured_slider' ] ) ) { echo '<!-- refreshing cache -->'; $catchkathmandu_post_sliders = ' <div id="main-slider" class="container"> <section class="featured-slider">'; $get_featured_posts = new WP_Query( array( 'posts_per_page' => $options[ 'slider_qty' ], 'post__in' => $options[ 'featured_slider' ], 'orderby' => 'post__in', 'ignore_sticky_posts' => 1 // ignore sticky posts )); $i=0; while ( $get_featured_posts->have_posts()) : $get_featured_posts->the_post(); $i++; $title_attribute = apply_filters( 'the_title', get_the_title( $post->ID ) ); $excerpt = get_the_excerpt(); if ( $i == 1 ) { $classes = 'post postid-'.$post->ID.' hentry slides displayblock'; } else { $classes = 'post postid-'.$post->ID.' hentry slides displaynone'; } $catchkathmandu_post_sliders .= ' <article class="'.$classes.'"> <figure class="slider-image"> '. get_the_post_thumbnail( $post->ID, 'slider', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ).' </figure> <div class="entry-container"> <header class="entry-header"> <h1 class="entry-title"> <a title="Permalink to '.the_title('','',false).'" href="' . get_permalink() . '">'.the_title( '<span>','</span>', false ).'</a> </h1> <div class="assistive-text">'.catchkathmandu_page_post_meta().'</div> </header>'; if( $excerpt !='') { $catchkathmandu_post_sliders .= '<div class="entry-content">'. $excerpt.'</div>'; } $catchkathmandu_post_sliders .= ' </div> </article><!-- .slides -->'; endwhile; wp_reset_query(); $catchkathmandu_post_sliders .= ' </section> <div id="slider-nav"> <a class="slide-previous"><</a> <a class="slide-next">></a> </div> <div id="controllers"></div> </div><!-- #main-slider -->'; set_transient( 'catchkathmandu_post_sliders', $catchkathmandu_post_sliders, 86940 ); } echo $catchkathmandu_post_sliders; } // catchkathmandu_post_slidersRegards,
Mahesh -
AuthorSearch Results
