Forum Replies Created
-
AuthorPosts
-
Mahesh
ParticipantHi @Deborah,
For the above, you have to create a child theme. You can find more on how to create child theme HERE. If you have set Tips and Tricks page as the blog page then creating other template won’t work. You have to create index.php in child theme to override default blog page. Following is the code for index.php.
<?php // Exit if accessed directly if ( !defined('ABSPATH')) exit; /** * Template Name: Blog Template * Description: A Page Template that disables a blog * * @package Catch Themes * @subpackage Catch_Evolution_Pro * @since Catch Evolution Pro 1.0 */ get_header(); ?> <?php global $more, $wp_query, $post, $paged; $more = 0; if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); } elseif ( get_query_var( 'page' ) ) { $paged = get_query_var( 'page' ); } else { $paged = 1; } $blog_query = new WP_Query( array( 'post_type' => 'post', 'paged' => $paged , 'category_name' => 'tips-and-tricks' ) ); $temp_query = $wp_query; $wp_query = null; $wp_query = $blog_query; if ( $blog_query->have_posts() ) : ?> <header class="page-header"> <h1 class="page-title"><?php the_title(); ?></h1> </header> <?php while ( $blog_query->have_posts() ) : $blog_query->the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to overload 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 endwhile; ?> <?php catchevolution_content_nav( 'nav-below' ); ?> <?php else : ?> <article id="post-0" class="post no-results not-found"> <header class="entry-header"> <h1 class="entry-title"><?php _e( 'Nothing Found', 'catch-evolution' ); ?></h1> </header><!-- .entry-header --> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'catch-evolution' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </article><!-- #post-0 --> <?php endif; $wp_query = $temp_query; wp_reset_postdata(); ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
And for news and other categories, create a template file as above and then while create the page select the respective templage.
Note: In the above code, please change the category-name to your category respective category slugs. (not id).
Regards,
MaheshMahesh
ParticipantHi @helpme.
I’ve checked your site, you’ve add some Custom CSS for Site Title and Site Description font size. You have used only one rule so the font-size stays the same for all devices (desktop or mobile). Please add the following CSS in “Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS” box.
@media screen and (min-width: 421px) and (max-width: 570px) { .site-title { font-size: 55px; } .site-description { font-size: 30px; } } @media screen and (max-width: 420px) { .site-title { font-size: 40px; } .site-description { font-size: 24px; } }
Regards,
MaheshMahesh
ParticipantHi @Mouvance web,
I didn’t get what you mean by header-size image size. Where do you want to actually use it? Please clarify more.
Regards,
MaheshMahesh
ParticipantHi @Daniel,
This feature is only available in Catch Box Pro version. I recommend you to upgrade to pro version.
Regards,
MaheshMahesh
ParticipantHi @katta,
In single article, by the comment area is “close” do you mean the comment area doesn’t show up or you cannot just submit the comment?
If comment area is not displayed, please go to Edit post page and there is a Screen button on the top right below the profile link. Click and check the discussion checkbox ( if it is unchecked ). Then scroll down to Discussion tab and make sure that allow comment checkbox is checked.And the other one about the WordPress’s password protection, it is working fine. Do you get any specific error?
Let me know further.
Regards,
MaheshMahesh
ParticipantHi @deevd,
Well in that case, you have to first create a child theme. You can find more details on creating child theme HERE.
Then you have to override some function with child theme’sfunctions.php
.
Following are the functions to be overridden.
1. For changing Posted on and by textfunction adventurous_header_meta() { $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'adventurous' ), get_the_author() ) ), get_the_author() ); // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. $utility_text = __( '<span class="on-date">Posted on %1$s</span><span class="by-author"> by %2$s</span>', 'adventurous' ); printf( $utility_text, $date, $author ); }
2. For changing Posted in and tagged text
function adventurous_footer_meta() { // Translators: used between list items, there is a space after the comma. $categories_list = get_the_category_list( __( ', ', 'adventurous' ) ); // Translators: used between list items, there is a space after the comma. $tag_list = get_the_tag_list( '', __( ', ', 'adventurous' ) ); // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. if ( $tag_list ) { $utility_text = __( '<span class="in-category">Posted in %1$s</span><span class="sep"> | </span><span class="in-tag">Tagged %2$s</span>', 'adventurous' ); } elseif ( $categories_list ) { $utility_text = __( '<span class="in-category">Posted in %1$s</span>', 'adventurous' ); } printf( $utility_text, $categories_list, $tag_list ); }
3. For changing Older posts and Newer posts text
function adventurous_content_nav( $nav_id ) { global $wp_query, $post; /** * Check Jetpack Infinite Scroll * if it's active then disable pagination */ if ( class_exists( 'Jetpack', false ) ) { $jetpack_active_modules = get_option('jetpack_active_modules'); if ( $jetpack_active_modules && in_array( 'infinite-scroll', $jetpack_active_modules ) ) { return false; } } // Don't print empty markup on single pages if there's nowhere to navigate. if ( is_single() ) { $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) return; } // Don't print empty markup in archives if there's only one page. if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) return; $nav_class = 'site-navigation paging-navigation'; if ( is_single() ) $nav_class = 'site-navigation post-navigation'; ?> <nav role="navigation" id="<?php echo $nav_id; ?>" class="<?php echo $nav_class; ?>"> <h1 class="assistive-text"><?php _e( 'Post navigation', 'adventurous' ); ?></h1> <?php if ( is_single() ) : // navigation links for single posts ?> <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'adventurous' ) . '</span> %title' ); ?> <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'adventurous' ) . '</span>' ); ?> <?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?> <?php if ( function_exists('wp_pagenavi' ) ) { wp_pagenavi(); } else { ?> <?php if ( get_next_posts_link() ) : ?> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'adventurous' ) ); ?></div> <?php endif; ?> <?php if ( get_previous_posts_link() ) : ?> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'adventurous' ) ); ?></div> <?php endif; } ?> <?php endif; ?> </nav><!-- #<?php echo $nav_id; ?> --> <?php }
Regards,
MaheshMahesh
ParticipantHi deevd,
The theme is made translation ready by default, you can use translation plugins such as WPML, Qtranslate etc for the translations.
Regards,
MaheshMahesh
ParticipantHi @deevd,
Delete the theme folder or rename is solution for uploading updated theme manually. If you are using Catch Updater plugin, you can skip this step.
Regards,
MaheshMahesh
ParticipantMahesh
ParticipantHi @deevd,
It is recommended to first create the backup before any updates. Then delete the theme folder or rename (recommended) the older theme folder, then install the new updated theme.
Or you can try Catch Updater plugin which will make it easy for you to install theme updates without renaming or removing manually. I also has an option to create the backup of the older theme.
You can download the plugin from HERE.Regards,
MaheshMahesh
ParticipantHi @husker,
The settings in the main theme retains on the child theme if no modification is made through child theme settings. However the changes in styles such as modifying color, width etc in Custom CSS won’t be carried between child theme an main theme.
No you do not have to remove all the widgets from main theme while creating the child theme, I recommend to see if it fixes the issue.
Yes, sometimes, the plugins may affect the way the theme working. Have you tried disabling the plugins?Please let me know if this fixes the issue.
Regards,
MaheshMahesh
ParticipantHi @husker,
I just checked your site and now the main theme active, the “Game Countdown” is in the right sidebar. Did you just switched the theme or have you repositioned the widgets also because now there is only “Game Countdown” in Primary Sidebar and no other widgets in footer. Previously in the child theme there were other widgets like “Recent Posts, Recent Comments, Archives” etc in the Primary Sidebar and “Game Countdown” in the Footer Widget.
Please activate the child theme, go to “Dashboard=> Appearance=> Widgets” and remove all the widgets from there. Then add “Countdown” widget to the Primary Sidebar. And go to front end and check where the widget is being displayed.
Let me know if the problem persists.
Regards,
MaheshMahesh
ParticipantHi @[email protected],
Your site seems down so couldn’t check your site. It seems you’ve changed the color for menu in desktop version only. There is another element for the menu for mobile version you’ve to add the CSS rule to that element too.
It is the ul with id=> “header-mobile-menu-block”.Add the CSS as below
#header-mobile-menu-block li a { color: #ff5a00; }
Note: Add rule to this element as you desire.
Regards,
MaheshMahesh
ParticipantHi @Paul,
I’ll provide you the code that I’ve tested with which is working fine. Please try with the following.
1. style.css/* Theme Name: Catch Kathmandu Pro Child Theme Theme URI: http://catchthemes.com/themes/catch-kathmandu-pro Author: Catch Themes Team Author URI: http://catchthemes.com Description: Catch Themes has come up with a full-fledged Corporate/Blog premium WordPress theme, Catch Kathmandu Pro! The design is highly customizable and you can tailor the display to your taste with a few easy clicks. Based on HTML5 and CSS3, it is a responsive theme which automatically adapts to the screen's size, regardless of the devices the visitors use. It has a large screen layout which elegantly extends to 1280 pixels! If you are looking for a clean professional space which accommodates your visuals and yet provides you with ample amount of textual area, Catch Kathmandu Pro is your perfect find. Active community at http://catchthemes.com/support-forum/ Version: 1.0 License: GNU General Public License, version 3 (GPLv3) License URI: http://www.gnu.org/licenses/gpl-3.0.txt Tags: black, blue, gray, white, dark,light, one-column, two-columns, left-sidebar, right-sidebar, fixed-layout, fluid-layout, responsive-layout, custom-background, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, front-page-post-form, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready Text Domain: catchkathmandu Template: catch-kathmandu-pro */ /* =Child Theme Custom CSS -------------------------------------------------------------- */
2. functions.php
<?php /** * Child Theme functions and definitions * */ /** * Loading Parent theme stylesheet * */ 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' ); } /** * Moving Primary Slider below Slider * */ add_action( 'init' , 'catchkathmandu_child_move_menu_below_slider' ); function catchkathmandu_child_move_menu_below_slider() { remove_action( 'catchkathmandu_hgroup_wrap', 'catchkathmandu_header_right', 15 ); add_action( 'catchkathmandu_before_main', 'catchkathmandu_header_right', 15 ); }
The link below is the image of the changes made with the above codes in the child theme.
http://www.awesomescreenshot.com/image/925575/3ad7ec7128fb34c76175a8c2b3cdad24Regards,
MaheshMahesh
ParticipantHi @husker,
It seems, you’ve put the Game Countdown widget in the “Footer Area 1”. Please check the widgets are in the right places in admin section.
And what updates have you made to the main theme’s slider?
The changes main theme should be same on the child theme too, unless you’ve modified it to something else in the child theme.Hope you understand, let me know further.
Regards,
MaheshMahesh
ParticipantHi @witgi,
Yes, no problem. Please email it to me @ [email protected].
If you have just modified the theme for secondary menu hack and changed nothing else I recommend you to install a fresh copy of the theme again and check.Regards,
MaheshMahesh
ParticipantHi @husker,
The above mentioned code is all correct. It is working fine as I tested it.
Could you please post in you site url?Regards,
MaheshMahesh
ParticipantHi @LiminalLLC,
The issue is not because of the theme itself. It is simply because of the size of the images ( all 3 images are more than 1MB ). We recommend you to optimize the image size. Your idea of changing images from png to jpg is perfect.
The recommended size for the slider is:
Slider
Width: 1920px
Height: 800pxRegards,
Mahesh -
AuthorPosts