Tagged: Blog, blog archive, blog post
-
AuthorPosts
-
September 8, 2017 at 3:15 pm #849601
Hi,
I would like to add custom img / icon for each category at blog page. Image should display next to the category name or instead of category name above post title at Single Post page and Blog (Archive) page.
For blog i am using empty page that is selected for blog page at theme and wp options. Blog Style: Elegant and Blog Layout: Grid
Problem is that when i make changes in file loop-index.php changes are showing only at single post page.
I made some changes in section //elegant blog //prev: if( $blog_global_style == ‘elegant-blog’ ) – After Line 185, and changes are shown only at Single Post page.
Can you tell me how can i apply those changes to post title ( category above title) at Blog (archive) page?September 11, 2017 at 2:57 am #850276Hey rakocevic,
Thank you for using Enfold.
The blog style is set to grid so you have to modify the config-templatebuilder > avia-shortcodes > postslider.php file.
Best regards,
IsmaelSeptember 11, 2017 at 9:59 am #850395Thank you Ismael,
Kind regards.September 11, 2017 at 10:06 am #850398One more thing.
How can i include postslider.php into my child theme?
Thank you.September 11, 2017 at 11:11 am #850418Hi,
If you have downloaded the child theme here: http://kriesi.at/documentation/enfold/using-a-child-theme/ just copy postslider.php then on the child theme create shortcodes folder then paste postslider.php and modify it.
Best regards,
NikkoSeptember 11, 2017 at 12:52 pm #850454Hi,
I tried to copy modified postslider.php to:- /enfold child/ (child theme root)
- /enfold child/shortcodes
- /enfold child/config-templatebuilder
- /enfold child/config-templatebuilder/avia-shortcodes
But file is not making any changes to website, but when the same changes are applied in code of original file in parent theme changes are displayed on the website.
After every change i used ctrl+f5 to flush cache.September 11, 2017 at 3:17 pm #850538Hi,
The 2nd one is right, but you might have not downloaded the child theme from the link I posted above, you would need to add the php code that is in this post: http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Best regards,
NikkoSeptember 11, 2017 at 3:29 pm #850546Thank you guys.
Great support.September 12, 2017 at 8:21 am #850845 -
AuthorPosts
- The topic ‘Custom Category Icon at Blog Post Title’ is closed to new replies.