Hi calin, I want to add a PHP code to the function.php section of my website.
I added this code in function.php in Cpanel of my website but nothing changed on the posts where it was supposed to make changes.
So, should i place the code in the themepanel custom code section for it to work.
Actually I wanted to show the last updated text on my blog. Please help me where should i put this code.
Please give me a real solution.
https://www.wpbeginner.com/wp-tutorials/display-the-last-updated-date-of-your-posts-in-wordpress/
You can go through this URL and this is what I want to do on my website. Where should i place the code. I have added the code in function.php in theme editor but it did not work.
Where should I add the code for it to show me the results?
Hello,
My suggestion is to try first the theme option for this -> https://i.imgur.com/8iB5qME.png -> https://i.imgur.com/4QNFQk8.png
Also, if that code need to be set in functions.php, the please use a child theme and set that code in the functions.php from the child theme.
Thank you!
Hi! I don’t have that folder. I will download it again.
However, If I make changes in function.php with my folder being in the system, will changes appear automatically in the website, Or will I have to upload something to the website
how to enable the child theme? I am not able to find it.
Hi,
Once that you download the package with all files you’ll need to unzip it and navigate inside it, there you’ll see a folder /code/ inside it is a folder called Newspaper-child, zip that folder and install it like a normal theme, then just enable it.
Here is a guide that can help you: https://www.wpbeginner.com/beginners-guide/how-to-install-a-wordpress-child-theme/
Thank you!
hi!! calin I have installed the child theme into my wordpress. By installing it, will my parent theme be affected or not?
Hi! please check this link: https://imgur.com/FKdmMZe
I activated the child theme in my dashboard, I also made changes to the child theme.
But I guess, when I activate the child theme, the parent theme gets automatically deactivated. I activated the parent theme again, but the changes I made in the child theme got overwritten. (you can check the above image for reference)
How to keep the parent theme activated as well as how to enable the child theme?
Please send me the graphical example to do the same.
Hi,
The parent theme isn’t actually deactivated when activating a child theme, or else nothing would work anymore. The child theme will appear as active in the WordPress themes panel, but in fact both the parent theme and the child theme are active.
If you want to use a child theme, simply activate it and use it for the intended purpose. Don’t worry, the parent theme is also active. Please try it.
Thank you!
Hey Calin,
I want to show Last modified/Last updated date on my posts, but it seems the option you mentioned in the screenshot for Post, is not available for me, is there anything else I need to do first before I see this ? Also, will it just start showing the updated post date or will it show along side post date ?
https://prnt.sc/j6prYtRW0_o4
Thanks
Hi mask,
Do you have the last theme version? IF you have the Newspaper v11.5.1 then the option should be there, but please notice that the options from that screenshot are only for standard templates, if you are using a single post template from the cloud, then you can edit it using the tagDiv Composer.
Thank you!
Hi Calin, I changed the view styles of the website. But the images are clearly visible. Please help me how to make images visible and completely. I am also not able to change the size of featured image.
http://www.extrasportz.com. This is the link of my website. Please check it and how to make text written on images visible.
https://imgur.com/bfsqpZu
Hello,
According to your screenshot you need to regenerate the thumbs, in this way those should be generate in the proper size -> https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
Thank you!
Is there any way I can do it without any plugin? Why images are not properly visible.
Also I want to change the size of the featured image, how to do that?
The images are cropped and the crop is not correctly done, that it is way you need to regenerate them, after that you can remove the plugin.
To do this on pages you can use the flex block -> https://i.imgur.com/ApYXD7M.png then from layout tab you can set the image size -> https://i.imgur.com/l1fZ3K2.png this can be done only on pages where tagDiv Composer is used.
For the featured image on categories you can set a different style -> https://forum.tagdiv.com/newsmag-how-category-settings-work/
Also for posts -> https://forum.tagdiv.com/newsmag-post-templates/
Thank you!