Comments 3thynksheraze started the conversationApril 23, 2018 at 8:28pmHello, I want to include a featured image at the top of all category pages. Currently it formats very badly if you use an "over the content (absolute)" header. See http://islamic-literacy.org/category/quranic-translation. If you use the static header it works ok like your template: https://demo.kaliumtheme.com/education/category/academy However, I want a featured image like this page: http://islamic-literacy.org/translation-resources. I already downloaded a plugin to make categories allow for a featured image. But it seems your template does not have code to recognize this.Can you help? [deleted] repliedApril 26, 2018 at 7:10amHi,I have added the following code in functions.php to show slider on category page: // Show slider in category pagesadd_action( 'kalium_header_main_heading_title_before', function() { if ( is_category() ) { $content = '[rev_slider alias="blog"]'; echo do_shortcode( $content ); }} );And the page looks like: (view large version)The CSS I have added to add a little margin for the content is this: .archive.category div#rev_slider_2_1_forcefullwidth { margin-bottom: 20px !important;}I hope this will work for you. 3thynksheraze repliedJune 24, 2018 at 4:01pmArlind, This will work fine but it doesn't seem to have been updated. See http://islamic-literacy.org/category/translations/. Can you advise if the change can be made? Also, if I make the change myself will next updates maintain this change?[deleted] repliedJune 29, 2018 at 8:17amHi thynksheraze,I checked your page and I saw that the slider was showing just like previously when I helped you: (view large version)If you want to always apply the custom code, then install this plugin:https://wordpress.org/plugins/my-custom-functions/And then put the code on plugin and it will be used always even when you update the theme. Sign in to reply ...
Hello,
I want to include a featured image at the top of all category pages.
Currently it formats very badly if you use an "over the content (absolute)" header. See http://islamic-literacy.org/category/quranic-translation. If you use the static header it works ok like your template:
https://demo.kaliumtheme.com/education/category/academy
However, I want a featured image like this page: http://islamic-literacy.org/translation-resources.
I already downloaded a plugin to make categories allow for a featured image. But it seems your template does not have code to recognize this.
Can you help?
Hi,
I have added the following code in functions.php to show slider on category page:
And the page looks like:
(view large version)
The CSS I have added to add a little margin for the content is this:
I hope this will work for you.
Arlind,
This will work fine but it doesn't seem to have been updated. See http://islamic-literacy.org/category/translations/.
Can you advise if the change can be made? Also, if I make the change myself will next updates maintain this change?
Hi thynksheraze,
I checked your page and I saw that the slider was showing just like previously when I helped you:
(view large version)
If you want to always apply the custom code, then install this plugin:
https://wordpress.org/plugins/my-custom-functions/
And then put the code on plugin and it will be used always even when you update the theme.