Add Widget Area Between Tags, Categories and Disqus

Community Forums Forums General Discussion Add Widget Area Between Tags, Categories and Disqus

This topic is: not resolved

This topic contains 6 replies, has 2 voices, and was last updated by  jhuotari 8 months, 2 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #70855

    jhuotari
    Participant
    Post count: 19

    Hello,

    I’ve been unable to add a widget between the “Filed Under” and “Tagged With” section and the Disqus plug-in at the end of our posts in the News theme. I’d like to put our comment policy there, letting people know that we require commenters to use real, full names.

    Our current policy is in the After Post Ad section, before the category and tag section, and I think many people miss it there, including the real name requirement. I’d like to bump the policy down the page a bit, putting it right above the Disqus “Leave a message” box to make the policy more prominent. The “Leave a message” box uses iframe, and Disqus told me that text cannot currently be altered to include a reminder to use a real, full name. (They might consider it as a feature request.)

    I’ve been unable to find a hook to move the comment policy to the right place. The closest I got was the after_post hook, but it put the comment policy under the Disqus comments.

    Does anyone know how to do this? We use the News theme, and our website is Oak Ridge Today (http://oakridgetoday.com).

    Thank you,

    John Huotari

    • This topic was modified 8 months, 3 weeks ago by  jhuotari.
    • This topic was modified 8 months, 3 weeks ago by  jhuotari.
    http://oakridgetoday.com
    #70861

    nutsandbolts
    Moderator
    Post count: 3104

    Have you tried the genesis_before_comments hook? I’m not sure where Disqus will fall in the hierarchy, but hopefully that will get the policy to show before Disqus begins.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #70881

    jhuotari
    Participant
    Post count: 19

    nutsandbolts,

    Sorry, I forgot to mention the other hooks I’ve tried. I have tried genesis_before_comments, as well as genesis_before_comment_form, genesis_after_post_meta, and genesis_after_post_tags. None of these worked either.

    I’m wondering if there is some other hook I should try or some hierarchy that I’m not aware of that would affect the placement here.

    Thank you,

    John

    #70915

    nutsandbolts
    Moderator
    Post count: 3104

    You may be able to give it a higher priority if it’s showing right below the comments. Here are two articles that explain that:

    http://wpsites.net/web-design/3rd-parameter-action-hooks/

    http://designsbynickthegeek.com/tutorials/genesis-explained-actions


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #70925

    jhuotari
    Participant
    Post count: 19

    Thank you, Andrea. I’ll try both resources. (I’ve found both websites to be great resources in the past. Thanks, Brad and Nick.)

    Andrea, I wondered about the numbers and whether they set a priority. I noticed there is a number 9 in the News theme’s After Post Ad function in functions.php.

    I’ll let you know how it goes. Thanks again.

    • This reply was modified 8 months, 3 weeks ago by  jhuotari.
    • This reply was modified 8 months, 3 weeks ago by  jhuotari.
    #71941

    jhuotari
    Participant
    Post count: 19

    Andrea,

    I was able to move our comment policy right above Disqus by setting the priority level to 1.

    Thank you for your help.

    John

    #72031

    jhuotari
    Participant
    Post count: 19

    A follow-up: I had to use the visibility feature on the widget to show the commenting guidelines only after posts. Before I modified the visibility, the commenting guidelines were showing between posts on archives pages, which I didn’t want.

    Still tweaking the styling a bit, but overall this worked.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.