Community Forums › Forums › Archived Forums › General Discussion › Sorting/Identifier Multiple Text Widgets Without Titles
Tagged: sorting widgets, text widgets, widgets
- This topic has 5 replies, 2 voices, and was last updated 9 years, 8 months ago by
Doug Edgington.
-
AuthorPosts
-
March 1, 2016 at 10:25 pm #180402
mikemdg
MemberJust wondering if anyone has a suggestion on a good way to sort text widgets?
In my "Footer 1" widget area for example, if I had 10 text widgets, it can be tricky to sort through them all at a glance. Of course if there is a title on them, it shows the title, but I don't want to use a title for these entries, so they all just say "Text"The only thing I've thought of is to enter a title and then set it to display:none; in the css - but I still may want the title for other text widgets.
Any suggestions on a better way to place an identifier on these text widgets?
March 1, 2016 at 11:18 pm #180406Doug Edgington
MemberYou can try using less text widgets. I typically put most of my text in one widget, and If I need additional headings, I add the headings to the text widget along with the text.
Doug Edgington
http://www.dougedgington.comMarch 1, 2016 at 11:30 pm #180409mikemdg
MemberBasically I've added added a custom hook for a masthead image on each page to go below the menu. So there are about 10 images. Previously I've done this and just put some custom code in so the name of the header image is "header-<pagename>.jpg" and it just grabs it from the page title and the images just need to be named to match. Was just looking for an easier way for a client to access that code via wordpress iinstead of FTP so they could drop an image name in for each.
I realize there are probably better ways to do this with an uploader, but was trying to limit dev time since they end-user doesn't care that much.
I would like to use less text widgets though 🙂
March 1, 2016 at 11:46 pm #180411Doug Edgington
MemberI assume you are trying to output an image outside of the text editor - above the content but below the header. A good solution for this may be Advanced Custom Fields. This would allow you to create an image setting for all of the pages. Then you would output the contents of the image field directly below the header using the genesis_after_header hook.
Doug Edgington
http://www.dougedgington.comMarch 1, 2016 at 11:55 pm #180412mikemdg
MemberYes exactly, thanks! I will check that out. Haven't used Advanced Custom Fields but looks like what I'm after.
What you're describing is exactly right. I've got an image output below the header and before the copy in a custom widget using the genesis_after_header hook.March 2, 2016 at 12:03 am #180413Doug Edgington
MemberYes, I have to do similar set-ups quite often. It will take a little extra time, since it is your first time using it. After that you will be using ACF all of the time.
Setting up the field is pretty quick. Writing the code will take a little more time. Here is some documentation on outputting the images: http://www.advancedcustomfields.com/resources/image/
Doug Edgington
http://www.dougedgington.com -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.