Forum Replies Created
-
AuthorPosts
-
Mahesh
MemberHi @rflores,
Do you have any other functions added in your
functions.php. If you do not have any other modifications made, please replace all your code with the following codes:<?php /** * Child Theme functions and definitions * */ /** * Loading Parent theme stylesheet * */ add_action( 'wp_enqueue_scripts', 'simplecatch_child_enqueue_styles' ); function simplecatch_child_enqueue_styles() { wp_enqueue_style( 'simplecatch-parent-style', get_template_directory_uri() . '/style.css' ); } add_action( 'init' , 'simplecatch_child_adjust_image_size'); function simplecatch_child_adjust_image_size() { remove_image_size( 'featured'); add_image_size( 'featured', 210, 210, false); }Regards,
MaheshMahesh
MemberHi @Raielene,
I understand your issue. But the links in the slider is dynamically generated from the code and always points to the very post that the featured is of. I mean slider image of post1 links to post1 and so on. But you mean to have all the slider link to the same page say Post-X. For that you have to override the theme’s function with child theme and place a static link (hard coded) in the anchor tag. And whenever you want to change the link you have to go through the code.
That is why I recommend you to upgrade to Pro.
But if you want to change it within the Free version, create a child theme. You can find more details on creating a child theme HERE. Then in child theme’sfunctions.phpadd the following codes./** * Change slider's links to one custom link * */ 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"> <a title="Permalink to '.the_title('','',false).'" href=" http://your-site/link-to-some-post "> '. get_the_post_thumbnail( $post->ID, 'slider', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ).' </a> </figure> <div class="entry-container"> <header class="entry-header"> <h1 class="entry-title"> <a title="Permalink to '.the_title('','',false).'" href=" http://your-site/link-to-some-post ">'.the_title( '<span>','</span>', false ).'</a> </h1> </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_slidersNote: Please replace http://your-site/link-to-some-post in the above code with your desired link. There are two occurrences.
Let me know if this helps.
Regards,
MaheshMahesh
MemberHi @Anton,
Sakin is the founder of Catch Themes.
He’ll help you with the issue.Regards,
MaheshMahesh
MemberHi @marga,
Yes, the same code for
functions.phpwork fine for Pro version too.
What seems to be the problem? Have you copied the above code into child theme’s functions.php?Regards,
MaheshMahesh
MemberHi @marga,
Buying a pro version, you have to create a child theme, copying previous child theme and and making some changes in its
style.csswill work. Such as Theme Name, Template and the folder name too. And you do not need to upload media or pictures again.Regards,
MaheshJanuary 27, 2016 at 5:06 pm in reply to: Change space between Blog title and blog text in the blog list view #83883Mahesh
MemberGo to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the following CSS.
#content .post .entry-header { margin-bottom: 0; }Regards,
MaheshMahesh
MemberHi @Marcus,
This seems to be the problem with the server. Please contact the server for the issue.
Let me know if it fixes your issue.Regards,
MaheshMahesh
MemberHi @Carina,
1. Removing blog posts from front page.
For this change you have to create a child theme. You can find more details on creating child theme HERE. Then in child theme create a fileindex.phpand add the following codes and save it.<?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * * @package Catch Themes * @subpackage Catch Responsive * @since Catch Responsive 1.0 */ get_header(); get_footer(); ?>2. Changing Home to another language.
Go to Dashboard=> Appearance=> Menus” and change Home label to another language home text manually.3. Changing footer color to black with white text.
Go to “Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS” box and add the following CSS.#site-generator { background-color: none repeat scroll 0 0 #000; color: #fff; }Regards,
MaheshMahesh
MemberHi @andrewf90,
Go to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the following CSS:
@media screen and ( max-width: 940px ) { #logo-wrap { margin: 0 auto; float: none; display: block; } }Regards,
MaheshMahesh
MemberHi @Tiffini,
Please check the uploads folder’s permission. And check the files in the uploads folder exists. The update was the minor update and should not affect the files. Try checking again disabling the plugins.
Let me know further if the problem persists.
Regards,
MaheshMahesh
MemberMahesh
MemberHi @shawn,
Thank you for your appreciation.
Have a nice day!Regards,
MaheshJanuary 27, 2016 at 12:04 pm in reply to: Remove borders around the content boxes and widgets and narrow sidebar #83863Mahesh
MemberHi @towerlexa,
Thank you very much.
Yes, its Nepal. We welcome you here.
Have a nice day!Regards,
MaheshMahesh
MemberMahesh
MemberHi @pal_coche,
I am afraid its not possible with Custom CSS. You need to do it creating child theme and add the above code in child theme’s
functions.php.
Sorry I forgot to put the link to the detail page on creating child theme. Please visit this LINK.Regards,
MaheshMahesh
MemberTo decrease opacity, you have to decrease the last value i.e. 1 in the above CSS code. Range (0 to 1). Replace above with the following.
The code adds up drop shadow to slider as well.#main article.post, #main-slider {
-webkit-box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.5);
-moz-box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.5);
box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.5);
}Note:
box-shadow: h-shadow v-shadow blur-distance spread rgba( red, green, blue, opacity );Hope this clarifies you.
Regards,
MaheshMahesh
MemberHi @eggbanana,
This is beyond the theme support scope. You need to either hire a customizer or contact the plugin support.
Regards,
MaheshMahesh
MemberHi @Raielene,
In Catch Kathmandu Free Version, you can only put the post images in the slider, and the link by default points to its relative post. In Catch Kathmandu Pro Version, you have other features in slider image such as post, page, category or custom image (with custom link). I recommend you to upgrade to Pro version.
Regards,
MaheshMahesh
MemberHi @pal_coche,
Assuming you are trying to display the header image in Blog Post Page ONLY.
For the above, you’ve to create child theme, you can find more details on creating child theme HERE. Then in child theme’s functions.php, add the following codes./** * Display header image in blog page only * */ function catchbase_featured_overall_image() { if ( is_home() ) { catchbase_featured_image(); } }Note: This will override the header image function of the Main theme and will display the header image on blog page only. Adding this function, Enable Featured Header Image on in Header Image of customizer won’t work as it is being overridden.
Regards,
Mahesh -
AuthorPosts
