Hi, I am using Newspaper wp theme, can someone explain me how to display category name on post featured image? I use this code <div class=”category-1″>
<?php foreach((get_the_category()) as $category) { echo $category->cat_name . ‘ ‘; } ?>
</div>
but I show category of post only in single post, dont show on Home Pafe who is create with page builder. Where I can put this peace of code to show category name on post featured image and then to stilize in css?
Like on img in link below…
Hello,
Our theme already has a category tag feature. Please read this guide: https://forum.tagdiv.com/category-tag-on-modulesblocks/
Thank you!
Hi,
There is no setting for that at this moment. Different colors cannot be set for the category tags on modules. An option like this may be added in the future.
Only thorough customization that would be possible if you would consider it
– https://forum.tagdiv.com/topic/category-label-appearance-on-block-1/
Thanks
Ok, one question more, I am installed font awesome plugin recomended for Newspaper theme, but icons dont show in my menu like on img in attacment…
Make sure you have installed the required plugin as mentioned in the guide
– https://forum.tagdiv.com/how-to-add-icons-in-menu/
Then add the icons you want and there should be no problem
– https://www.screencast.com/t/jXJAnqLs5yhf
– https://www.screencast.com/t/gQjlB94Pc
You are not using icons from the mentioned source
– https://fontawesome.com/v4.7.0/icons/
The new icons in font awesome will not work. A user mentions a different plugin that works with both previous icons used by font awesome and their new icons
– https://forum.tagdiv.com/topic/font-awesome-error/
Ok, thanks for response. I have one question 🙂 more… How to add custom filed to posts for example called “source” and displey at td-module-meta-info. For example I create post on standard way and on bottom of post I have text field for source of post and this text how on td-module-meta-info with other informations like on img. THANKS!
There already are source and via fields you can use
– https://www.screencast.com/t/jPGttZak
These fields will be displayed at the bottom of the post, you can even set links for them. You could move them in the post structure if needed, this is a similar topic
– https://forum.tagdiv.com/topic/post-tags-over-the-post/
Hi, Your sugesstion work form me on half a way :)… Can I tweak code on img 3 to have this on img 2 to set up this from img 1 (source name from theme) from attacmnet…
https://ibb.co/hgM1nx img 1
https://imgur.com/a/OxhCg img 2
https://ibb.co/myzDjc img 3
You could move the code responsible with the source/via from the loop single file of the post template you want to modify, in the single file. Example for post template 2
– https://www.screencast.com/t/NNGpKHtm7T
– https://www.screencast.com/t/UY9Jj8ZjqjRB
Then with some CSS to position it properly
– https://www.screencast.com/t/eacW7OjHr
.td-post-source-via {
display: inline-block;
position: relative;
bottom: 2px;
}
You could further tweak this solution if necessary. Custom code can be entered in Theme panel->Custom CSS.
You are GREAT! How I can find which loop-single and single_template to edit? In exmple You use post template 2, I often use default post template…
And Can I display time when is post published nex to dte od post published for example now is 17th March and I want 17th March 12:50…
Each post template style has corresponding loop-single and single files. For example post template style 2 has corresponding loop-single-2.php and single_template_2.php. And so on for all post template styles. For the default post template you will have to modify only the loop file
– https://www.screencast.com/t/a6hJuWlUejq
The date format can be changes as you want, please see this topic
– https://forum.tagdiv.com/topic/block7-hour-post/
Ok, when I think that I solve all problem, new popup me 🙂 I use Verdana,Geneva,Sans-Serif font for post content, and I use latin letters like č,ć,š and in Fonts Panel I turned on LATIN SUPPORT, but fonts dont show mr good like on img… How to solve this?
https://ibb.co/b0im9c
I have set the same font family for the post content, a similar character looks like this for me with Verdana font
– https://www.screencast.com/t/tzadoSXN
So the verdana font would support latin characters such as these. Check with the browser inspector and see what font is loaded exactly.
Hi, can I show this on Block 12 https://ibb.co/m2a6pn like on article display view M11… On Block 12 now is https://ibb.co/eqxxvS Thanks!
Hi,
That numbered pagination is only present in the latest articles section, category pages etc but not on blocks. Blocks have only the pagination options mentioned in the guide, not a page pagination
– https://forum.tagdiv.com/block-settings-guide/
Hi, can someone explain me what happens with space around my logo. In theme panel says that I have 272x90px for logo, and now (see attachment) I have 150×90. How I can solve this?
And second question is whether it is allowed to change the name of the theme, that when someone inspect or ctrl+u dont see:
/wp-content/themes/Newspaper/… and see for example /wp-content/themes/site-name/
and how to do this?
Thanks!
Indeed there are requirements for most header styles in terms of logo size
– https://forum.tagdiv.com/logo-favicon/
Simply make sure you upload the full size of the image when setting the logo
– https://www.screencast.com/t/graHsimAEo
– https://www.screencast.com/t/HsOr4LblR
Changing the theme name could cause issues, but there are content protection plugins you could try if required.