Forum Replies Created
-
AuthorPosts
-
Mahesh
MemberHi @tivonjohnson,
The image was correct at first and changed automatically after a week? That is kind of odd. Have you made any changes to the codes afterward. May be some plugins you are using created the issue. Please try again cropping the image manually and try again.
Let me know if any problem.Regards,
MaheshMahesh
MemberMahesh
MemberHi @gk017,
No, shortcode still doesn’t work in Featured Content. But you can make it work with child theme. In child theme, you’ll need to override this function
catchbase_featured_content_displaylocated incatch-base-pro/inc/catchbase-featured-content.php.Regards,
MaheshMahesh
MemberHi @Roger,
Go to “Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS” box and add the following CSS:
.home #content .wrapper { padding: 0; } .home #main .page .entry-header { display: none; } .home #main .entry-content h6 { margin-bottom: 0; }Regards,
MaheshMahesh
MemberHi @riccrom123,
Go to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the following CSS:
@font-face { font-family: "Abel"; font-style: normal; font-weight: 400; src: local("Abel"), local("Abel-Regular"), url("https://fonts.gstatic.com/s/abel/v6/_c5D7Wxu-NSk4vT8jUYrkQ.woff") format("woff"); } #header-menu ul.menu a { font-family: Abel; font-size: 15px; }Regards,
MaheshMahesh
MemberHi @catchemall,
For this, you’ll need to create a child theme for this. You can find more details on creating child theme HERE. Then in your child theme’s
functions.phpreplace all the code with the following:<?php /** * Child Theme functions and definitions * */ function theme_enqueue_styles() { wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );And replace all the CSS in child theme’s style.css with style from the following link:
https://gist.github.com/mahesh247/6e1f29dc845cecd57312Regards,
MaheshFebruary 18, 2016 at 9:28 am in reply to: Catch Box doesn't look the same on Firefox and Chrome #85694Mahesh
MemberHi @spespam,
Thank you for your appreciation. If you like my support and Catch Box theme then please support by providing your valuable review and rating at https://wordpress.org/support/view/theme-reviews/catch-box?rate=5#postform
Have a nice day!Regards,
MaheshFebruary 18, 2016 at 9:18 am in reply to: Create vertical line to separate content and sidebar #85693Mahesh
MemberMahesh
MemberFebruary 18, 2016 at 9:12 am in reply to: How to delete 'permalink to: + text' from featured content #85690Mahesh
MemberHi @calmo16,
I assume you have created child theme and done all the changes I’ve mentioned above. Seems you are still using the parent theme. Please activate the child theme for changes.
Let me know if any issue.Regards,
MaheshMahesh
MemberHi @marga,
For that, you can add a
border: nonerule along within the code above, it will look like the following:.hentry { background-color: transparent; border: none; }Regards,
MaheshMahesh
MemberHi @marga,
Go to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the following CSS:
.hentry { background-color: transparent; }Regards,
MaheshFebruary 17, 2016 at 4:40 pm in reply to: How to delete 'permalink to: + text' from featured content #85646Mahesh
MemberHi @calmo16,
The settings are set in the transient such as cache for performance enhancement, so changing some setting(anything e.g. change color) in customizer will clear the transient. If you are still seeing the “Permalink to”, it must be because of transient. Please let me know if any problem.
Regards,
MaheshMahesh
MemberHi @calmo16,
Thank you for your appreciation.
I’ve replied you in the related thread. Please check.Regards,
MaheshFebruary 17, 2016 at 4:15 pm in reply to: How to delete 'permalink to: + text' from featured content #85643Mahesh
MemberHi calmo16,
The above code was for Catch Box. Please replace it with the following for Clean Box.
function clean_box_page_slider( $options ) { $quantity = $options['featured_slider_number']; $more_link_text = $options['excerpt_more_text']; global $post; $clean_box_page_slider = ''; $number_of_page = 0; // for number of pages $page_list = array(); // list of valid page ids //Get number of valid pages for( $i = 1; $i <= $quantity; $i++ ){ if( isset ( $options['featured_slider_page_' . $i] ) && $options['featured_slider_page_' . $i] > 0 ){ $number_of_page++; $page_list = array_merge( $page_list, array( $options['featured_slider_page_' . $i] ) ); } } if ( !empty( $page_list ) && $number_of_page > 0 ) { $get_featured_posts = new WP_Query( array( 'posts_per_page' => $quantity, 'post_type' => 'page', 'post__in' => $page_list, 'orderby' => 'post__in' )); $i=0; while ( $get_featured_posts->have_posts()) : $get_featured_posts->the_post(); $i++; $title_attribute = the_title_attribute( array( 'echo' => false ) ); $excerpt = get_the_excerpt(); if ( $i == 1 ) { $classes = 'page pageid-'.$post->ID.' hentry slides displayblock'; } else { $classes = 'page pageid-'.$post->ID.' hentry slides displaynone'; } $clean_box_page_slider .= ' <article class="'.$classes.'"> <figure class="slider-image">'; if ( has_post_thumbnail() ) { $clean_box_page_slider .= '<a title="' . esc_attr( $title_attribute ) . '" href="' . get_permalink() . '"> '. get_the_post_thumbnail( $post->ID, 'clean-box-slider', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ).' </a>'; } else { //Default value if there is no first image $clean_box_image = '<img class="pngfix wp-post-image" src="'.get_template_directory_uri().'/images/gallery/no-featured-image-1680x720.jpg" >'; //Get the first image in page, returns false if there is no image $clean_box_first_image = clean_box_get_first_image( $post->ID, 'fullframe-slider', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ); //Set value of image as first image if there is an image present in the page if ( '' != $clean_box_first_image ) { $clean_box_image = $clean_box_first_image; } $clean_box_page_slider .= '<a title="' . esc_attr( $title_attribute ) . '" href="' . get_permalink() . '"> '. $clean_box_image .' </a>'; } $clean_box_page_slider .= ' </figure><!-- .slider-image --> <div class="entry-container"> <header class="entry-header"> <h1 class="entry-title"> <a title="' . esc_attr( $title_attribute ) . '" href="' . get_permalink() . '">'.the_title( '<span>','</span>', false ).'</a> </h1> <div class="assistive-text">'.clean_box_page_post_meta().'</div> </header>'; if( $excerpt !='') { $clean_box_page_slider .= '<div class="entry-content">'. $excerpt.'</div>'; } $clean_box_page_slider .= ' </div><!-- .entry-container --> </article><!-- .slides -->'; endwhile; wp_reset_query(); } return $clean_box_page_slider; }Note: Please use child theme. If you change the core files, all your change will be lost after theme update.
If you don’t see any changes (may be because of transient), please go to customize and save change something and it will work fine.
Let me know if any problems.Regards,
MaheshMahesh
MemberHi @calmo16,
You are using Clean Box, but the thread is in Catch Box so, the above was the solution for Clean Box. 🙂
You can change hyperlink’s color in Clean Box with Custom CSS. Go to “Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS” box and add the following CSS.a { color: #00ffff; }Note: Change the color to your desired color’s hex value.
Regards,
MaheshMahesh
MemberHi @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 #85621Mahesh
MemberHi 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 #85617Mahesh
MemberHi @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.
-
AuthorPosts
