How to make a full width or 2/3 width widget
Support Area › Forums › Authentic › How to make a full width or 2/3 width widget
Tagged: custom widget, wide widget, widget width
- This topic has 9 replies, 2 voices, and was last updated 11 years, 6 months ago by
Bill Robbins.
-
AuthorPosts
-
April 12, 2014 at 13:01 #18634
KristenParticipantHello. I am having trouble with making a widget full width or 2/3 width. when I try the text doesn’t wrap and the other widgets don’t automatically move below it.
April 12, 2014 at 14:28 #18635Bill Robbins
ParticipantIt looks like the widgets on the home page there may not play nicely since they don’t have unique ID’s. You might try the BlackStudio TinyMCE plugin which adds a widget with the editor from the page/post screen. It does have proper ID’s to hook styling to.
With the widgets that are there now, you can make them full width this way:
.home-lower .widget_wysiwyg_widgets_widget { width: 100%; }
WordPress doesn’t have a built in filter for the widget classes that we can use to choose a width from a drop-down inside the widgets. I could add one to a custom widget that’s in a theme, but it wouldn’t help out widgets added via a plugin or the ones in the WordPress core itself.
Hope that helps out,
BillApril 13, 2014 at 14:27 #18640
KristenParticipantThanks, Bill…
So if I wanted to use the regular text widget for a full width widget, I could do that by choosing the specific ID and using the css you posted in an answer on the other thread?
Thanks for your patience!
April 14, 2014 at 08:47 #18656Bill Robbins
ParticipantGood question. The method of choosing the ID to target a specific widget will be the same across WordPress themes, but the exact styling necessary will be different from theme to theme. That will have to be specific to how the theme’s styles are created.
Have a great week Kristen!
April 16, 2014 at 13:19 #18748
KristenParticipantBill, Hi.
I changed all of the lower widgets to black studios tinymce and had only one text widget I am trying to make full width. I’m having the same problem as before. Any suggestions? Thanks
April 16, 2014 at 13:23 #18749
KristenParticipantBill,
Hi. I changed all of the widgets to blackstudios tinymce widgets and then added a text widget that I wanted to make full width.
I followed the instructions to add css to the styling tab in Authentic theme options, but I have the same result as before.
April 16, 2014 at 13:25 #18751
KristenParticipantOops… sorry for posting twice.
April 16, 2014 at 14:18 #18753Bill Robbins
ParticipantWhy don’t we give this a try. Let’s add in a spot below the home top section (the slider and sidebar) that pulls in the page content full width. Here’s how to do that:
- Go to the Appearance section in your WordPress control panel and select Edit.
- From the list of files on your right, choose page-home.php
- Find this line:
<?php if(is_active_sidebar( 'home-bottom' )) { ?>and paste this right above that:
Be sure to copy that code from the support site instead of the notification email. - Save your changes.
See if that won’t add in a spot where you can include the content from the home page that’s full width, just above the home bottom widgets.
If that doesn’t do it, just let me know.
Thanks,
BillApril 16, 2014 at 18:08 #18758
KristenParticipantThanks so much. That’s exactly what I needed! Works like a charm 🙂
April 16, 2014 at 18:09 #18759Bill Robbins
ParticipantFantastic news. Have a great night 🙂
-
AuthorPosts
- The topic ‘How to make a full width or 2/3 width widget’ is closed to new replies.
