- This topic has 12 replies, 2 voices, and was last updated 1 year, 11 months ago by
Elvin.
-
AuthorPosts
-
March 21, 2019 at 3:17 pm #846070
stefanie
Hi, I really need some help on adding images to my categories. I have installed the plugin ‘categories images’ but now I see that I need to add code and certain other things that I know nothing about. Where do I put this code exactly? I cannot find any training on this anywhere on the internet. I have heard talk of using a child theme (I’m not even sure what this is or if I even have it). I feel a bit stupid as everybody seems to be talking in code and I just don’t get it. I know a little as I have been running my website for 18 months, but can you please walk me through how I apply this code to GeneratePress? Thanks
GP Premium 1.7.8March 21, 2019 at 3:47 pm #846094Tom
Lead DeveloperLead DeveloperHi there,
What kind of image are you trying to add? A background image? If so, where are you wanting it to display?
Can you share the function with us?
Thanks!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 21, 2019 at 4:18 pm #846122stefanie
Hi Tom, I am just trying to add an image to go with my category descriptions. I’ve installed a plugin to do this but I need to add a piece of code. I know nothing about code, the plugin is ‘category images’. I will send this message now but I won’t be able to read your reply until tomorrow as it is late here, but thanks for your help π
By the way, I’m not sure what you mean by share the function with youMarch 22, 2019 at 9:50 am #846755Tom
Lead DeveloperLead DeveloperHi there,
What plugin are you using? Any chance you can link me to it?
Thanks!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 22, 2019 at 12:29 pm #846889stefanie
I have installed it but i don’t understand where I am supposed to put this piece of code that it talks about. I’m not used to going into my code so this is new territory to me. Apparently I also need to do update my theme too! All I am trying to do is add an image to the categories description in wordpress, I didn’t know it would be so difficult, I have looked all over the internet on training for this but nothing.
Thanks for your help π
March 22, 2019 at 12:30 pm #846890stefanie
Hi again, I tried to add the link to that last message but it didn’t go through so I have copied and pasted the URL https://en-gb.wordpress.org/plugins/categories-images/
March 22, 2019 at 3:21 pm #847008Tom
Lead DeveloperLead DeveloperTry this:
1. Create a Hook Element: https://docs.generatepress.com/article/hooks-element-overview/
2. In the Hook setting, choose before_archive_title
3. Check the “Execute PHP” checkbox.
4. In the Hook content, add this:<?php if ( function_exists( 'z_taxonomy_image' ) ) { z_taxonomy_image(); } ?>
5. In the Display Rules, choose the category archives you wish to apply this to.
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 22, 2019 at 3:57 pm #847028stefanie
Thanks Tom, I will try to do this tomorrow and I will let you know how it goes, Thank you so much π
March 22, 2019 at 4:06 pm #847040Tom
Lead DeveloperLead DeveloperYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 23, 2019 at 8:04 am #847545stefanie
Hi Tom, I’m really chuffed as I have got it all working according to your advice. What turned out to be a pretty simple thing was a week of stress for me, so thanks for your help. Now I am wondering how I can add links to the descriptions in my categories sections as there is no option for this in WordPress. Will I need another plugin for this? Or any advice you can give me on how to do this would be great π
Thanks a million!
March 23, 2019 at 9:01 am #847583Tom
Lead DeveloperLead DeveloperA plugin like this might be worth checking out: https://wordpress.org/plugins/allow-html-in-category-descriptions/
It should allow you to add HTML inside the category descriptions.
Glad I could help! π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentApril 22, 2021 at 8:32 pm #1745424Mst Mahfuza
what I’ve been done wrong
1. http://prntscr.com/11wqsxg
2. http://prntscr.com/11wqtoh
3. http://prntscr.com/11wqu3zplease see this screenshot. I image not showing yet.
April 22, 2021 at 9:06 pm #1745442Elvin
StaffCustomer SupportHi Mst Mahfuza,
Can you open a new topic for this? To avoid convoluting the thread as this is already resolved for the topic starter.
Starting a new topic allows you to use the private information text field as well incase we need to ask for site details. You can also add in more explanation there.
Let us know.
A wise man once said:
"Have you cleared your cache?" -
AuthorPosts
- You must be logged in to reply to this topic.