Community Forums › Forums › Archived Forums › General Discussion › Add Widget Area Between Tags, Categories and Disqus
Tagged: after post, disqus, widget
- This topic has 6 replies, 2 voices, and was last updated 11 years, 3 months ago by
jhuotari.
-
AuthorPosts
-
November 4, 2013 at 10:11 am #70855
jhuotari
MemberHello,
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
http://oakridgetoday.comNovember 4, 2013 at 10:49 am #70861nutsandbolts
MemberHave 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/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 4, 2013 at 12:27 pm #70881jhuotari
Membernutsandbolts,
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
November 4, 2013 at 3:00 pm #70915nutsandbolts
MemberYou may be able to give it a higher priority if it's showing right below the comments. Here are two articles that explain that:
Using The 3rd Parameter With Action Hooks – Priority For Positioning
http://designsbynickthegeek.com/tutorials/genesis-explained-actions
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 4, 2013 at 3:22 pm #70925jhuotari
MemberThank 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.
November 9, 2013 at 9:10 pm #71941jhuotari
MemberAndrea,
I was able to move our comment policy right above Disqus by setting the priority level to 1.
Thank you for your help.
John
November 10, 2013 at 10:06 am #72031jhuotari
MemberA 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.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.