Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter fablar

    (@fablar)

    Hi Phillip, thanks for your reply. Actually I solved the issue in the time between the post and you answer, so you probably didn’t see the issue at all. Anyway, I really appreciate your kindness and your help try. Thanks.
    Regards

    Fabio

    Thread Starter fablar

    (@fablar)

    Dear, thanks for your help. I tried to follow your suggestions and now my app is on review. Let’s keep our finger crossed. I’ll elt you know. Thanks again.

    • This reply was modified 6 years, 1 month ago by fablar.
    Thread Starter fablar

    (@fablar)

    Hi, thanks again to those who kindly helped. What if I try to let the caption show only in the post page? Which file should I modify with coding? single.php? Or another? And… does anyone have a code to suggest?
    Again, highly appreciated ??

    Fabio

    Thread Starter fablar

    (@fablar)

    Hi, thanks everybody who helped. Hi tried by adding the code but it still doesn’t work. Here is it tho whole functions.php code of the child theme in use. Anyone knows what’s wrong with it? Thanks again, very appreciated.

    <?php
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;
    
    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED - Do not modify or remove comment markers above or below:
             
    if ( !function_exists( 'child_theme_configurator_css' ) ):
        function child_theme_configurator_css() {
            wp_enqueue_style( 'chld_thm_cfg_separate', trailingslashit( get_stylesheet_directory_uri() ) . 'ctc-style.css', array( 'newser-weather','newser-theme-styles','newser-style','newser-style','newser-responsive','newser-color' ) );
        }
    endif;
    add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css' );
    
    // END ENQUEUE PARENT ACTION
    
    // filter to show caption, if available, on thumbnail, wrapped with '.wp-caption thumb-caption' div;
    // show just the thumbnail otherwise
     
    add_filter( 'post_thumbnail_html', 'custom_add_post_thumbnail_caption',10,5 );
     
    function custom_add_post_thumbnail_caption($html, $post_id, $post_thumbnail_id, $size, $attr) {
     
    if( $html == '' ) { 
      
        return $html;
      
    } else {
      
        $out = '';
      
        $thumbnail_image = get_posts(array('p' => $post_thumbnail_id, 'post_type' => 'attachment'));
      
        if ($thumbnail_image && isset($thumbnail_image[0])) {
      
            $image = wp_get_attachment_image_src($post_thumbnail_id, $size);
     
            if($thumbnail_image[0]->post_excerpt) 
                $out .= '<div class="wp-caption thumb-caption">';
      
            $out .= $html;
      
            if($thumbnail_image[0]->post_excerpt) 
                $out .= '<p class="wp-caption-text thumb-caption-text">'.$thumbnail_image[0]->post_excerpt.'</p></div>';
       
        }
     
        return $out;
       
    }
    }
    Thread Starter fablar

    (@fablar)

    Hi @pangolinthemes, thanks for your reply. It’s already checked. Any other suggestion? If you want to take a look the site is ceramichescimone.com
    thanks in advance

    Thread Starter fablar

    (@fablar)

    UPDATE: Issue solved. I inserted the code

    span.post-meta__tag__item {
    display: none;
    }

    in the custom CSS. Thanks everyone who helped.

    Thread Starter fablar

    (@fablar)

    Hi @pangolinthemes, thanks for your reply. That option was already unabled, and it worked with higing everything but the tags in the posts pages.

    Hi @saurabhdhariwal thank you too. I followed your steps but I still got an isuee. Tags disappeared, but I still see comas (, , , ,) in the tags place… any other hint?

Viewing 7 replies - 1 through 7 (of 7 total)