[Support request] adding images to categories

Home Forums Support [Support request] adding images to categories

Home Forums Support adding images to categories

  • This topic has 12 replies, 2 voices, and was last updated 3 years ago by Elvin.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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

    #846094
    Tom
    Lead Developer
    Lead Developer

    Hi 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!

    #846122
    stefanie

    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 you

    #846755
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    What plugin are you using? Any chance you can link me to it?

    Thanks!

    #846889
    stefanie

    Hi there yes it is

    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 πŸ™‚

    #846890
    stefanie

    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/

    #847008
    Tom
    Lead Developer
    Lead Developer

    Try 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 πŸ™‚

    #847028
    stefanie

    Thanks Tom, I will try to do this tomorrow and I will let you know how it goes, Thank you so much πŸ™‚

    #847040
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #847545
    stefanie

    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!

    #847583
    Tom
    Lead Developer
    Lead Developer

    A 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! πŸ™‚

    #1745424
    Mst Mahfuza

    what I’ve been done wrong
    1. http://prntscr.com/11wqsxg
    2. http://prntscr.com/11wqtoh
    3. http://prntscr.com/11wqu3z

    please see this screenshot. I image not showing yet.

    #1745442
    Elvin
    Staff
    Customer Support

    Hi 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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.