Forum Replies Created
-
AuthorPosts
-
MaheshParticipant
Where actually are you seeing this? Only published date are displaying in our server. Please post in your site url.
Regards,
MaheshJanuary 28, 2016 at 10:42 am in reply to: Want “Leave a Reply” field at bottom of the home-page post, too #83927MaheshParticipantFor this you have to create child theme. For more details on creating child theme, visit this LINK. Then in child theme create a file and name it
index.php
and add the following codes in it and save.<?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 Base Pro * @since Catch Base 1.0 */ get_header(); ?> <main id="main" class="site-main" role="main"> <?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'content', get_post_format() ); ?> <?php $withcomments = 1; // force comments form and comments to show on front page comments_template(); ?> <?php endwhile; ?> <?php catchbase_content_nav( 'nav-below' ); ?> <?php else : ?> <?php get_template_part( 'no-results', 'index' ); ?> <?php endif; ?> </main><!-- #main --> <?php get_sidebar(); ?> <?php get_footer(); ?>
This will display comments section in your home page.
Regards,
MaheshMaheshParticipantYou do not have to touch the theme’s code for this. It can be done with Custom CSS. Go to “Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS” box and add the following CSS.
.wp-caption-text { font-size: 12px; }
Regards,
MaheshMaheshParticipantHi @rcstani,
Please post in your site url.
Regards,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantHi @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.php
add 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_sliders
Note: 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,
MaheshMaheshParticipantMaheshParticipantHi @marga,
Yes, the same code for
functions.php
work fine for Pro version too.
What seems to be the problem? Have you copied the above code into child theme’s functions.php?Regards,
MaheshMaheshParticipantHi @marga,
Buying a pro version, you have to create a child theme, copying previous child theme and and making some changes in its
style.css
will 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 #83883MaheshParticipantGo to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the following CSS.
#content .post .entry-header { margin-bottom: 0; }
Regards,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantHi @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.php
and 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,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantMaheshParticipantHi @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 #83863MaheshParticipantHi @towerlexa,
Thank you very much.
Yes, its Nepal. We welcome you here.
Have a nice day!Regards,
MaheshMaheshParticipantMaheshParticipantHi @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,
Mahesh -
AuthorPosts