Content Aware Sidebars
Support Area › Forums › Elite › Content Aware Sidebars
- This topic has 22 replies, 2 voices, and was last updated 11 years, 10 months ago by
Bill Robbins.
-
AuthorPosts
-
November 4, 2014 at 22:19 #23849
James Amedeo
ParticipantHi Bill,
I asked you a question a while back that I’m not clear about. The post is here:
Can you please tell me what I need to do in content aware sodebars to add these widget sections?
Thanks,
James
November 5, 2014 at 09:09 #23854Bill Robbins
ParticipantGood Morning James,
What Content Aware Sidebars does is allow you to create new sidebar areas for your site. You can have these sidebars replace or add to existing sidebars. The plugin allows you to specify when the new sidebar is visible (like only on certain pages).
To use it along with the home page template, you’ll want to create a new sidebar for each home page area. Then you’ll need to set each of the new areas to replace the original on your second page that uses the home page template.
Another alternative is to use the Jetpack plugin. It has a module that’s part of it called Widget Visibility. This one adds a new field to each widget that lets you choose when it’s visible. You would then add the widgets for your original page and your new one to the same home block. Then use the visibility field to hide one for the home page and then hide the other for the new page.
Either way can work, but that essentially what you’ll need to do.
Take care,
BillNovember 5, 2014 at 10:22 #23856James Amedeo
ParticipantThanks Bill. I think I’ll be able to figure that out, but I know I’m doing something else wrong.
I used the code you provided and hide the new pages from the menu. But instead of having the sliding image, this is what appears? Any idea what I’m doing wrong?
November 5, 2014 at 10:27 #23857Bill Robbins
ParticipantYou have to enter that inside a style tag or the browser will just treat it like text. It should look something like this:
Make sure to enter that in the text editor and not the visual editor too.
Lastly it looks like that page is using the default page template. You’ll want to switch that to the home page template in order to use the home blocks.
Bill
November 5, 2014 at 10:41 #23858James Amedeo
ParticipantI’m using 6 blocks and slides. All 6 pages need to use the home template or just the page where its appearing?
November 5, 2014 at 10:45 #23859Bill Robbins
ParticipantGotcha. You only have to use the template on the page where they will be displayed.
November 5, 2014 at 10:57 #23860James Amedeo
ParticipantDo I have to make 12 content sections? Its seems to be working now but I cannot see the other images. I want the years to be static and the slides to move.
November 5, 2014 at 14:11 #23863James Amedeo
ParticipantI have the first 2 slides in, but I’m still doing something wrong for the remaining slides.
November 5, 2014 at 15:14 #23869Bill Robbins
ParticipantIt looks like the code is getting messed up a bit as it’s published. Try using a text widget for these instead of the home block — page content widget and see if that won’t work out better for you.
Just to be clear though, when you’re saying “slide” you’re referring to a home block that has a fixed background image and not an actual “slide” that’s a slideshow in the hero section of the page, right?
Bill
November 5, 2014 at 16:13 #23874James Amedeo
ParticipantSo i should at the code in the text box instead of on the image page I created?
November 5, 2014 at 16:18 #23875Bill Robbins
ParticipantSome way or another the code is getting mangled in the home block — page content widget. Just use a text widget for all of them instead. After you move the code over you can delete the redundant pages.
November 5, 2014 at 19:07 #23887James Amedeo
ParticipantBill, I gratefully appreciate your help but this is not working out. I deleted all the content aware sidebar groups because I somehow deleted all the content on the main homepage. So I think the problem stems with the sidebar setup. I googled how to use content sidebars but I couldn’t find any instructions. There are settings in here that I just don’t understand. I attached a screenshot. I’d really appreciate it you could tell me how I should set this up.
Also, for the block pages, how should I set up the page? As a post, images, gallery etc?
Do I update the new homepage widgets using the widget menu under appearance, or do I use the second widget option when I select customize?Thanks again,
James
November 5, 2014 at 19:20 #23890Bill Robbins
ParticipantHey James,
It looks like in the screenshot that is attached, the new sidebar is set to replace the Default Sidebar. You’ll need to replace one of the widget areas (Home One, Home Two, Home Three and so on). The default sidebar only appears on pages that use the default page template or on a post.
You may have better luck going with the Jetpack plugin and using its Widget Visibility module (http://jetpack.me/support/widget-visibility/). That way you don’t have to create any new widget areas.
Neither option is simple. It’s not. Doing this falls in the possible but not easy category because we didn’t make the theme with the intention of reusing this template. It can be done, but it’s a bit trickier than average.
Bill
November 5, 2014 at 19:32 #23891James Amedeo
ParticipantAttached are the options I’m struggling with. I’ll try jetpack. I’m just confused tha how I still have content on the page if I removed all the sidebars.
November 5, 2014 at 19:39 #23894Bill Robbins
ParticipantIt looks like you have the correct options set in both screenshots.
When you removed the new sidebars you created, it reverts to the originals that are built into the theme. Presumably there are widgets inside those sidebars.
November 5, 2014 at 19:44 #23895James Amedeo
ParticipantI tried Jet Pack. The first block looks set so I didn’t touch it.
In the home area 2, I HIDE the content that I have on the home page if the page is History and added the homeblock- page content widget, set to homeblock 2 (my label for the image) to SHOW if the page is History. Still doesn’t work. Only thing I can think of is maybe I dont have the page setup correctly. Attached is how I set up the next section I want to appear.
I know it can be done. I feel like I’m missing a very minor detail.
November 5, 2014 at 19:52 #23898Bill Robbins
ParticipantLooks like that actually did work. I spot the content from that widget in your history page’s source code. Yeah!
But you still need to switch from the Home Block — Page Content widget to a text widget. That widget is altering you code to display the background image which will keep it from working. You need to switch to a text widget which is made to use HTML out of the box.
November 5, 2014 at 20:01 #23899James Amedeo
ParticipantI think we have a winner!
Do just continue to upload all the pages into the text widgets or do I add another component?
I feel like I need to have the two images flipped. I add the first image (1885) as the main image on the HISTORY page.
http://venierosnewyork.com/history/
I’m feeling a lot more confident Bill. Thanks for the help.
November 5, 2014 at 20:14 #23900Bill Robbins
ParticipantYou got it. Just add all the content now with text widgets and you should be good to go.
November 5, 2014 at 20:22 #23901James Amedeo
ParticipantThank you so much. I think I got it, but of course it isn’t smooth sailing…
How do increase the size so the full images show?
http://venierosnewyork.com/history/November 6, 2014 at 08:48 #23906Bill Robbins
ParticipantIt looks like the style tags aren’t quite right. The closing tag has a slash in it like this:
(see the support site to view the code).It looks like the ones being used to close right now are the same as the opening tags. Try switching the closing ones and see if that doesn’t help.
November 6, 2014 at 10:18 #23911James Amedeo
ParticipantBil you’re a saint. My clients are going to be so happy and I look forward to working with you again.
Thanks again,
James
November 6, 2014 at 10:20 #23912Bill Robbins
ParticipantGlad that did the trick for you.
If you have any other questions, just let me know.
Have a great day,
Bill -
AuthorPosts
- The topic ‘Content Aware Sidebars’ is closed to new replies.






