Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Edwan

    (@edwan)

    Hi Ben,

    I was trying to do it, but it does not work. My website looks like this: http://www.vietflavour.cz

    <?php
    
    $date_display = get_theme_mod( 'ct_ignite_post_meta_date_settings' );
    $author_display = get_theme_mod( 'ct_ignite_post_meta_author_settings' );
    
    if( is_single() ) { ?>
        <div <?php post_class(); ?>>
    	    <?php
            // as long as one isn't equal to 'hide', display entry-meta-top
            if( $date_display != 'hide' || $author_display != 'hide' ) : ?>
    	        <div class="entry-meta-top">
    	            <?php
    	            // Don't display if hidden by Post Meta section
    	            if( $date_display != 'hide' ) {
    		            echo __( 'Published', 'ignite' ) . " " . date_i18n( get_option( 'date_format' ), strtotime( get_the_date( 'n/j/Y' ) ) );
    	            }
    	            // output author name/link if not set to "Hide" in Post Meta section
    	            if( $author_display != 'hide' ) {
    
    		            // if the date is hidden, capitalize "By"
    		            if( $date_display == 'hide' ) {
    			            echo " " . ucfirst( _x( 'by', 'Published by whom?', 'ignite' ) ) . " ";
    			            the_author_posts_link();
    		            } else {
    			            echo " " . _x( 'by', 'Published by whom?', 'ignite' ) . " ";
    			            the_author_posts_link();
    		            }
    	            }
    	            ?>
    	        </div>
            <?php endif; ?>
    		<div class='entry-header'>
      <?php ct_ignite_featured_image(); ?>
    			<h1 class='entry-title'><?php the_title(); ?></h1>
    		</div>
    		<div class="entry-content">
    			<article>
    				<?php the_content(); ?>
    				<?php wp_link_pages(array('before' => '<p class="singular-pagination">' . __('Pages:','ignite'), 'after' => '</p>', ) ); ?>
    			</article>
    		</div>
    		<div class='entry-meta-bottom'>
    			<?php
    			if( get_theme_mod('ct_ignite_post_meta_further_reading_settings') != 'hide' ) {
    				get_template_part('content/further-reading');
    			}
    			?>
                <?php
                if(get_theme_mod('ct_ignite_author_meta_settings') != 'hide'){ ?>
                    <div class="author-meta">
                        <?php ct_ignite_profile_image_output(); ?>
                        <div class="name-container">
                            <h4>
                                <?php
                                if(get_the_author_meta('user_url')){
                                    echo "<a href='" . get_the_author_meta('user_url') . "'>" . get_the_author() . "</a>";
                                } else {
                                    the_author();
                                }
                                ?>
                            </h4>
                        </div>
                        <p><?php echo get_the_author_meta('description'); ?></p>
                    </div>
                <?php } ?>
                <?php
                if(get_theme_mod('ct_ignite_post_meta_categories_settings') != 'hide'){ ?>
                    <div class="entry-categories"><?php get_template_part('content/category-links'); ?></div><?php
                }
                if(get_theme_mod('ct_ignite_post_meta_tags_settings') != 'hide'){ ?>
                    <div class="entry-tags"><?php get_template_part('content/tag-links'); ?></div><?php
                }
                ?>
    		</div>
        </div>
    <?php
    } else { ?>
        <div <?php post_class(); ?>>
    	    <?php
    	    // as long as one isn't equal to 'hide', display entry-meta-top
    	    if( $date_display != 'hide' || $author_display != 'hide' ) : ?>
    		    <div class="entry-meta-top">
    			    <?php
    			    // Don't display if hidden by Post Meta section
    			    if( $date_display != 'hide' ) {
    				    echo __( 'Published', 'ignite' ) . " " . date_i18n( get_option( 'date_format' ), strtotime( get_the_date( 'n/j/Y' ) ) );
    			    }
    			    // output author name/link if not set to "Hide" in Post Meta section
    			    if( $author_display != 'hide' ) {
    
    				    // if the date is hidden, capitalize "By"
    				    if( $date_display == 'hide' ) {
    					    echo " " . ucfirst( _x( 'by', 'Published by whom?', 'ignite' ) ) . " ";
    					    the_author_posts_link();
    				    } else {
    					    echo " " . _x( 'by', 'Published by whom?', 'ignite' ) . " ";
    					    the_author_posts_link();
    				    }
    			    }
    			    ?>
    		    </div>
    	    <?php endif; ?>
            <div class='excerpt-header'>
    <?php ct_ignite_featured_image(); ?>
                <h1 class='excerpt-title'>
                    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                </h1>
            </div>
            <div class='excerpt-content'>
                <article>
                    <?php ct_ignite_excerpt(); ?>
                </article>
            </div>
            <?php
            if(get_theme_mod('ct_ignite_post_meta_categories_settings') != 'hide'){ ?>
                <div class="entry-categories"><?php get_template_part('content/category-links'); ?></div><?php
            }
            if(get_theme_mod('ct_ignite_post_meta_tags_settings') != 'hide'){ ?>
                <div class="entry-tags"><?php get_template_part('content/tag-links'); ?></div><?php
            }
            if(get_theme_mod('ct_ignite_post_meta_comments_settings') == 'show'){ ?>
                <div class="excerpt-comments"><?php get_template_part('content/comment-count'); ?></div><?php
            }
            ?>
        </div>
    <?php
    }

    So where is the problem? Could you fix it please?

    Thanks,

    Edwan

    Thread Starter Edwan

    (@edwan)

    Hi,

    your theme is great! Maybe I will buy a premium in the future! Yeah, I’m using a Child Ignite now, so if you show me how to do it, it will be great 😀

    Thanks in advance,

    Edwan

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