Forum Replies Created
-
AuthorPosts
-
MaheshParticipant
Hi @Deborah,
Go to “Dashboard=> Appearance=> Customize=> Static Front Page” and make sure that you’ve selected Tips and Tricks page in Posts Page dropdown.
The query in the above code is fine.
Regards,
MaheshMaheshParticipantMaheshParticipantHi @Mouvance web,
Thank you for your appreciation.
Regards,
MaheshMaheshParticipantHi @Mouvance web,
Thank you for the clarification.
For that you need to create a child theme. Please visit this LINK to find more details on creating the child theme. Then in child theme’s functions.php add the following function.function catchresponsive_custom_header() { $options = catchresponsive_get_theme_options(); if ( 'light' == $options['color_scheme'] ) { $default_header_color = catchresponsive_get_default_theme_options(); $default_header_color = $default_header_color['header_textcolor']; } else if ( 'dark' == $options['color_scheme'] ) { $default_header_color = catchresponsive_default_dark_color_options(); $default_header_color = $default_header_color['header_textcolor']; } $args = array( // Text color and image (empty to use none). 'default-text-color' => $default_header_color, // Header image default 'default-image' => get_template_directory_uri() . '/images/headers/buddha.jpg', // Set height and width, with a maximum value for the width. 'height' => 300, 'width' => 1200, // Support flexible height and width. 'flex-height' => true, 'flex-width' => true, // Random image rotation off by default. 'random-default' => false, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'catchresponsive_header_style', 'admin-head-callback' => 'catchresponsive_admin_header_style', 'admin-preview-callback' => 'catchresponsive_admin_header_image', ); $args = apply_filters( 'custom-header', $args ); // Add support for custom header add_theme_support( 'custom-header', $args ); }
Regards,
MaheshMaheshParticipantHi @husker,
There is no color option in Catch Responsive Free. The color option in the customizer i.e Title Color and Background Color is WordPress’s default features for customizer.
However you can change it with Custom CSS or add the CSS in child theme’s style.css if you want to change in code.
Regards,
MaheshMaheshParticipantHi @Mark Argentin,
If you want to change any functions or codes do not change the theme’s core files. You’ll lose it all with theme updates. It is highly recommended to use the child theme for the theme modifications. You can find more details on how to create child theme HERE.
1. The shortcode [date] is same for both the theme, but as you are using index.html as a page, the shortcode won’t work.
2. In Catch Box Pro,
catchbox_header_details
function is moved to catch-box-pro/inc/custom-header.php. It recommended not to change the code here directly, first create a child theme then infunctions.php
copy the function, then modify it there.3. For justification, CSS provided Sakin previously will work as before. Go to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the CSS.
4. For “Recommend this on Google” link, you can no do it with the theme without touching the code. Please follow along.
Go to “Dashboard=> Appearance=> Theme Options=> Footer Editor Options” and add the following HTML at the very end.<div class="gplus-holder"> <div class="g-plusone" data-annotation="inline" data-width="300"></div> </div>
Then Go to “Dashboard=> Appearance=> Theme Options=> Web Master Tools=> Header and Footer codes=> Code to display on Footer” and add the following scripts.
<script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/platform.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script>
And lastly, go to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the following CSS:
.gplus-holder { width: 100px; }
Regards,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantHi @Daniel,
This feature is only available in Catch Box Pro version. I recommend you to upgrade to pro version.
Regards,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantHi deevd,
The theme is made translation ready by default, you can use translation plugins such as WPML, Qtranslate etc for the translations.
Regards,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantMaheshParticipantHi @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,
MaheshMaheshParticipantHi @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,
MaheshMaheshParticipantHi @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,
Mahesh -
AuthorPosts