Tunc Satiroglu
asked 6 years ago

Hello, I have removed the meta section on the left side to gain some width for my posts. Now the tags are no longer displayed. I want my tags to be displayed under the posts. Is it possible?

1 Answers
answered 6 years ago

To resolve this issue, you can open the single-content.php file in the folder path “wp-content\themes\dw-focus”. find the line 25 add the following code under line 25:

                /* translators: used between list items, there is a space after the comma */
                $tags_list = get_the_tag_list( '', __( ', ', 'dw_focus' ) );
                if ( $tags_list ) :
            <div class="tag-action">
                <span class="title-action"><?php _e('Tags','dw_focus') ?></span>
                <span class="tags-links">
                    <?php printf( '%1$s', $tags_list ); ?>
            <?php endif; // End if $tags_list ?>

– Then open the functions.php file, find/remove the line 487 to line 498.
Hope this helps !

Tunc Satiroglu
replied 6 years ago

Hello Dominic thank you for your instructions. I use notepad++ to edit php files and I am probably not inserting your code where it should be because I am getting errors. Could you please tell me to insert the code giving a description like “under this line: ‘post__not_in’ => array(get_the_ID()),” instead of line number for both files. I appreciate it.

Dominic Staff
replied 6 years ago

You can add this code under line code:
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'dw_focus' ), 'after' => '</div>' ) ); ?>
See the screenshot:

Powered by DW Question & Answer Pro