Genesis Hooks

Community Forums Forums General Discussion Genesis Hooks

This topic is: resolved

This topic contains 8 replies, has 3 voices, and was last updated by  faiekg 6 months, 1 week ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #105267

    faiekg
    Member
    Post count: 50

    Hi ,

    How does one go about configuring a Genesis hook ? I love the hooks function but sometimes I need it to the left a little of lower etc. Also maybe style it a little different with background etc. I tried using firefox to single out the css but I cant seem to find it ?

    Thanks :)

    #105274

    braddalton
    Participant
    Post count: 10566

    Hooks are included in Genesis enabling you to hook in content. You can also change the 3rd parameter for positioning priority http://my.studiopress.com/snippets/


    #105508

    faiekg
    Member
    Post count: 50

    Hello ,

    Thanks , I read through some of the content but I am not sure yet how to do what I need to. Basically I used a hook to display a pic of my front page but I need that pic (hook) lower down. I assume I would need to add padding but I am not sure where.

    The hook I used is genesis_sidebar Hook

    #105562

    essaysnark
    Participant
    Post count: 342

    The genesis_sidebar hook is associated with your sidebar div, so that’s where things will be positioned. If you want to position something in a different place, you probably need a different hook.

    Can you post a link to your site and describe exactly what you’re trying to do?

    #105622

    faiekg
    Member
    Post count: 50

    http://www.faga.co.za

    You will see on the front page I hooked in a pic , I want that pic to be lower by 150px. ie in the centre a little more. The alternative I was thinking about is to use the sidebar primary widget and add the padding in the css. The problem is them that it will be added to all the pages.

    #105626

    essaysnark
    Participant
    Post count: 342

    I think an easier way of doing what you want is to place your image in the sidebar itself using the Widgets screen. You can put the img tag into a text widget and style it from there or add a class to it. If you only want the image on the home screen then you can use a plugin like Widget Logic to specify which one(s).

    https://wordpress.org/plugins/widget-logic/

    #105649

    faiekg
    Member
    Post count: 50

    Yes I thought of that , my only small problem is that I used that sidebar elsewhere and I don’t want the padding applied on the other pages sidebar areas as well. I am sure there is a simple way to isolate the home widget like a .home sidebar-primary widget but I cant find it yet , just need to look closer.

    #105747

    essaysnark
    Participant
    Post count: 342

    You can either add a class to the image and define it in your stylesheet, or style the image with a div in your text widget, something like:

    <div style="padding-top:150px;"><img src="http://faga.co.za/wp-content/uploads/2014/05/FAGA-Sidebar.jpg" alt="home page image"></div>

    #106075

    faiekg
    Member
    Post count: 50

    Thanks , That helped 100 % !!!

    • This reply was modified 6 months, 1 week ago by  faiekg.
    • This reply was modified 6 months, 1 week ago by  faiekg.
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.