Hi! I’d like to give more relevance to a single tag on each post’s preview in the blog page.
I’d like to show them in blog page (instead or next to categories) and in each post header.
Is there a way to do that? I was thinking that I can achieve that editing the post preview function, by copying it in child theme’s function.php. Do you think it could work? Will it override the parent theme function? In this case can you provide me with the post preview function?
Hi! I'm trying to do that editing the Post Template Page or one of the Page Builder Elements, as you suggested me. I was just wondering where I can find the blog and single post template to try to add by php.
This is pretty crucial for my project, as I need a double classifications for post and they must be explicit in the blog page.
That's what I was looking for! I resolved that issue.
Now I'm trying to find the php file of the single post header WITH img background with variable height & meta overlaid (see attachment image) to add tags in the header.
I find a php file that seem that one (salient > includes > partials > single-post > post-header-no-img-fulscreen.php) from line 38, but I tried to add some random classes at line 43 (as you can see in the attachment image) and nothing changes from frontend visualization.
I'm trying to override the parent theme with a php file place in path: salient-child > nectar > helpers > page-header.php.
It doesn't work. How can I override the parent theme? I'm interested to add some code after line 502, after category span, so maybe it could be a way to override only some lines (?).
Hi! I’d like to give more relevance to a single tag on each post’s preview in the blog page.
I’d like to show them in blog page (instead or next to categories) and in each post header.
Is there a way to do that? I was thinking that I can achieve that editing the post preview function, by copying it in child theme’s function.php. Do you think it could work? Will it override the parent theme function? In this case can you provide me with the post preview function?
Thank you
Hey Again,
Are you looking to edit the Post Template Page or one of the Page Builder Elements?. Please see: http://themenectar.com/docs/salient/overriding-salient-wpbakery-element-template-files-through-a-child-theme/ .
Thanks
ThemeNectar Support Team
Hi There,
I am afraid, you are not able to display tags on posts, you are only able to display categories.
Thanks.
Hi! I'm trying to do that editing the Post Template Page or one of the Page Builder Elements, as you suggested me.
I was just wondering where I can find the blog and single post template to try to add by php.
This is pretty crucial for my project, as I need a double classifications for post and they must be explicit in the blog page.
thank you
Hey Again,
You will have to override these files:
Thanks
ThemeNectar Support Team
Thank you very much Tahir!
That's what I was looking for! I resolved that issue.
Now I'm trying to find the php file of the single post header WITH img background with variable height & meta overlaid (see attachment image) to add tags in the header.
I find a php file that seem that one (salient > includes > partials > single-post > post-header-no-img-fulscreen.php) from line 38, but I tried to add some random classes at line 43 (as you can see in the attachment image) and nothing changes from frontend visualization.
Where can I find that code?
Thank you again
Hey Again, Hope you had a Positive Weekend,
The Page Header function can be found in here:
Thanks
ThemeNectar Support Team
Hey Again Tahir! Thank you for your response.
I'm trying to override the parent theme with a php file place in path: salient-child > nectar > helpers > page-header.php.
It doesn't work. How can I override the parent theme? I'm interested to add some code after line 502, after category span, so maybe it could be a way to override only some lines (?).
Thank you again
Have a nice day :)
Unfortunately the whole nectar page header function would have to be copied in the child theme "functions.php" to override it.
Thanks
ThemeNectar Support Team
Okay, thank you.
I try ASAP