Forum Replies Created
-
AuthorPosts
-
MaheshParticipant
Hi @tivonjohnson,
The recommended image size for Featured Post Slider is (976px x 313px). If you use large image then it will automatically crop the image to that size(without maintaining the aspect ratio). And if you use small image, the original image will be used. I recommend you to re-size/crop the image to the recommended size, then upload.
Let me know if any problem.Regards,
MaheshFebruary 17, 2016 at 10:35 am in reply to: How to delete 'permalink to: + text' from featured content #85621MaheshParticipantHi calmo16,
You need to create a child theme for this. You can find more on creating child theme HERE. Then in your child theme’s functions.php add the following code:
function catchbox_sliders() { global $post; //delete_transient( 'catchbox_sliders' ); // get data value from catchbox_options_slider through theme options $options = catchbox_get_theme_options(); // get slider_qty from theme options if( !isset( $options['slider_qty'] ) || !is_numeric( $options['slider_qty'] ) ) { $options[ 'slider_qty' ] = 4; } $postperpage = $options[ 'slider_qty' ]; //In customizer, all values are returned but with empty, this rectifies the issue in customizer if( isset( $options[ 'featured_slider' ] ) && !array_filter( $options[ 'featured_slider' ] ) ) { return; } if( ( !$catchbox_sliders = get_transient( 'catchbox_sliders' ) ) && !empty( $options[ 'featured_slider' ] ) ) { echo '<!-- refreshing cache -->'; $catchbox_sliders = ' <div id="slider"> <section id="slider-wrap">'; $get_featured_posts = new WP_Query( array( 'posts_per_page' => $postperpage, '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 = esc_attr( apply_filters( 'the_title', get_the_title( $post->ID ) ) ); if ( $i == 1 ) { $classes = "slides displayblock"; } else { $classes = "slides displaynone"; } $catchbox_sliders .= ' <div class="'.$classes.'"> <a href="'. esc_url ( get_permalink() ).'" title="'.sprintf( esc_attr__( '%s', 'catch-box' ), the_title_attribute( 'echo=0' ) ).'" rel="bookmark"> '.get_the_post_thumbnail( $post->ID, 'featured-slider', array( 'title' => $title_attribute, 'alt' => $title_attribute, 'class' => 'pngfix' ) ).' </a> <div class="featured-text">' .the_title( '<span class="slider-title">','</span>', false ).' <span class="sep">:</span> <span class="slider-excerpt">'.get_the_excerpt().'</span> </div><!-- .featured-text --> </div> <!-- .slides -->'; endwhile; wp_reset_query(); $catchbox_sliders .= ' </section> <!-- .slider-wrap --> <nav id="nav-slider"> <div class="nav-previous"><img class="pngfix" src="'.get_template_directory_uri().'/images/previous.png" alt="next slide"></div> <div class="nav-next"><img class="pngfix" src="'.get_template_directory_uri().'/images/next.png" alt="next slide"></div> </nav> </div> <!-- #featured-slider -->'; set_transient( 'catchbox_sliders', $catchbox_sliders, 86940 ); } echo $catchbox_sliders; }
Regards,
MaheshFebruary 17, 2016 at 10:15 am in reply to: Create vertical line to separate content and sidebar #85617MaheshParticipantHi @riccrom123,
This can be done in two ways, add border to the content(border will extend to content’s height) or to the secondary(border will extend to secondary height)
1. Add border to content.@media screen and (min-width: 961px) { #content { border-right: 2px solid #D8D8D8; padding-right: 13px; } }
2. Add border to secondary.
@media screen and (min-width: 961px) { #secondary { border-left: 2px solid #D8D8D8; padding-left: 13px; } }
Note: Please use any one of the above.
MaheshParticipantHi @calmo16,
In Catch Box free version, this feature is already built-in. Go to “Dashboard=> Appearance=> Customize=> Theme Options=> Link Color” and select your desired color for the hyperlink color.
Regards,
MaheshMaheshParticipantHi @micke,
To load child theme’s translations files instead of parent theme, , add the following code in your child theme’s
functions.php
:// Load translation files from your child theme instead of the parent theme function my_child_theme_locale() { load_child_theme_textdomain( 'catch-kathmandu', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'my_child_theme_locale' );
Then add your translated files inside a “languages” folder in the child theme.
Regards,
MaheshMaheshParticipantHi @husker,
In your child theme’s
functions.php
, add the following code.function catchresponsive_child_footer_content() { //catchresponsive_flush_transients(); if ( ( !$catchresponsive_footer_content = get_transient( 'catchresponsive_footer_content' ) ) ) { echo '<!-- refreshing cache -->'; $catchresponsive_content = catchresponsive_get_content(); $custom_text = 'Some custom text'; $catchresponsive_footer_content = ' <div id="site-generator"> <div class="wrapper"> <div id="footer-content" class="copyright">' . $catchresponsive_content['left'] . ' ' . $custom_text . ' | ' . $catchresponsive_content['right'] . '</div> </div><!-- .wrapper --> </div><!-- #site-generator -->'; set_transient( 'catchresponsive_footer_content', $catchresponsive_footer_content, 86940 ); } echo $catchresponsive_footer_content; } add_action( 'init', 'catchresponsive_child_modify_footer' ); function catchresponsive_child_modify_footer() { remove_action( 'catchresponsive_footer', 'catchresponsive_footer_content', 100 ); add_action( 'catchresponsive_footer', 'catchresponsive_child_footer_content', 100 ); }
Note: Please find and edit the following line in the above code and replace the text with your desired text.
$custom_text = 'Some custom text';
Regards,
MaheshMaheshParticipantHi @mehlem,
Thank you for your appreciation.
We will let you know as soon as the update is released.
Have a nice day!Regards,
MaheshMaheshParticipantHi @lucapresidente,
Thank you for your appreciation.
Should work on firefox too. Let me know if any problem that I could help you with.
Have a nice day.Regards,
MaheshMaheshParticipantHi calmo16,
I thought you wanted to decrease only the bottom space. 😀
You can add the following CSS.#masthead #site-logo { margin-top: 0; } #masthead .wrapper { width: 100%; } #site-branding, #masthead { padding: 0; }
Regards,
MaheshMaheshParticipantHi @calmo16,
The menu in Clean Box theme is fixed to the top. To decrease the space between logo and featured content, you’ll need to add some Custom CSS. Go to “Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS” box and add the following CSS.
#masthead { padding-bottom: 0; }
Let me know if this helped.
Regards,
MaheshMaheshParticipantMaheshParticipantHi @husker,
1. Footer Content
I recommend you to upgrade to Catch Responsive Pro. This feature is available in Pro version by default. You can change the footer text content to your desired content.
But if you prefer to have it in free version. You’ll need to do some customization. You have to override this function (catchresponsive_footer_content
).2. The code in
functions.php
above will enqueue the styles from parent theme to the child theme. And it is correct. Did you mean the some or you mean something different?
Let me know if any problem.Regards,
MaheshMaheshParticipantHi @noote,
Catch Responsive free theme has to slider options.
1. Demo Slider (Content cannot be changed)
2. Page Slider (Use featured image as slider image, Page title as Slider title and Page content as Slider content, links to related page).
To use page slider, go to “Dashboard=> Appearance=> Customize=> Featured Slider” and select Page slider in Select Slider Type then select number of slides you want to use (need refresh). Then in select the page you want to use as slider form Featured Page # drop down.If you want to have other options in slider, I recommend you to upgrade to pro.
1. Features from Catch Responsive free (Demo Slider and Page Slider)
2. Post Slider (Use featured image as slider image, Post title as Slider title and Post content as Slider content, links to related Post).
3. Image Slider (custom image, custom title, custom content and custom link).
4. Category SliderRegards,
MaheshMaheshParticipantHi @calmo16,
Yes, this can be done. It is a built-in feature.
Go to “Dashboard=> Appearance=> Customize=> Site Identity” and uncheck Display Header Text. Then scroll down a bit and uncheck Check to disable logo. Just above this option, you’ll find Logo option, change the logo to you desired image with Change image.
Let me know if any problem.Regards,
MaheshMaheshParticipantHi @ianworsley,
There is a little issue in the Custom CSS you’ve added. The CSS you’ve added is
#content. post img {width:100%}#content. post img {width:100%}
This won’t work, it must be like the following:#content .post img { width: 100%; }
Please replace the CSS and let me know if the issue persist.
Regards,
MaheshMaheshParticipantHi @ianworsley,
Go to “Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS” box and add the following CSS.
#content .post img { width: 100%; }
Let me know if this fixes your issue.
Regards,
MaheshMaheshParticipantHi @micky1982,
Sorry for the confusion, by homepage I mean the page you want to display as your site’s front page.
Regards,
MaheshMaheshParticipantHi @mehlem,
It is a translation issue. The J was supposed to display the year. You can fix this by editing de_DE.po file with poEdit in theme’s language folder.
Change this in line 54
msgstr "M J"
tomsgstr "M Y"
and change this in line 64
msgstr "J"
tomsgstr "Y"
This will be fixed in the next update.Regards,
Mahesh -
AuthorPosts