Jump to content
jantan

Custom Sidebars

Recommended Posts

jantan

Hello - read other posts on the forum concerning adding custom sidebars but cannot fathom where I'm going wrong here - would really appreciate being pushed in the right direction...

I have added two custom sidebars using the following method:

register_sidebars(2, array('name'=>'content%d')); added to the functions.php file (via the pagelines-customize plugin)

I have also duplicated (twice) the universal sidebar ‘sb_universal’ folder in the sections folder of the pagelines theme, having altered the code to reflect the new sidebar names (content1 and content2)

This gives me two new sidebars, visible in the drag and drop section entitled ‘content1’ and ‘content2’ (I have dragged these into place – above and below the content on pages and categories - in the drag and drop section of the pagelines admin - I specifically want them to be top/bottom of main content for both static and special pages)

It also gives me 2 sidebars with the right names added underneath the pagelines specified sidebars in the appearance-widgets area of the CMS – I have dragged my desired widget into these sidebars but when I view the site it shows the sidebars as being empty – my widget (an ad place) does not show up.

Viewing the front end shows the following for each sidebar position

"This is your content1 sidebar but it needs some widgets!

Easy! Just add some content to it in your widgets panel."

Although I have already added widgets to these new sidebars - feels like I am really close to achieving what I need but must be making a really stupid error somewhere - any ideas please?

many thanks in advance, Matt

Share this post


Link to post
Share on other sites
James B

Hi Matt, well it sounds like you're doing it right. Could you take a screen shot of the drag and drop pages for us and for the widget page so we can just double check the set up.

I've looked at the site link you provided, i can only see two holding widgets at the top, if you could set up a test page with the 'enter widget' data on we could have a look at too.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
jantan

Thanks for coming back to me James. I've attached the screenshots you ask for below and updated the site link to show my new sidebars on all pages/categories - they both appear where I want them to, but showing the 'add some content' message

thanks Matt

drag_and_drop.jpg

widgets_appearance.jpg

widgets_frontend.jpg

Share this post


Link to post
Share on other sites
James B

Hi again, I can't see anything from the screenshots which would seem obvious. I'll talk to one of the developer team on this for you and come back to you with a response. In the meantime, could you set us up an admin level user role and DM the details to me. Then we can go in and take a look at the setup first hand and see if there's anything that needs adjusting. I'm Uk based but work through the evening, so if there's a delay in response that's why.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
jantan

Thanks James - due to a looming deadline, I sought help from one of the pro developers - he fixed the problem for me but I notice that my pagelines dashboard now shows 'developer edition' (instead of 'professional' as it did previously) - I have since moved the site install to a new domain but the pagelines dashboard appears not to have survived the move - nor indeed does the work that the pro carried out for me. Have I done something stupid or is this because the pagelines framework has in some way been upgraded during this pro work - do I need to upgrade my own license now?

Share this post


Link to post
Share on other sites
Rob

Please email [email protected] and include the name of the Pro you used. They'll determine if a license upgrade is necessary. Unfortunately, we don't handle business issues here; only technical support. Our business support team will be in Monday, despite the holiday.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • Borries
      By Borries+
      I know this is not an easy problem. Maybe there is a easy solution.
      I have tryed to uses the existing solution, that I have found in the forum
      I changed the colours of my nav (simple nav) and the hover effect (a. hover).
      I really tryed to highlight the active/used link in the nav but I cant figure it out.
      I want it to be black when active.
      Any help would be appreciated. Thanks.
      http://www.marcborries.de  nav link: "Sinn & Selbst" 
    • Dan Haddock
      By Dan Haddock
      Hi Pagelines team and wider community,
      I am looking to develop a single post page for my blog. I have read over an old article on the subject, however the link provided on achieving this goal was giving me security warnings. Is there any way I can get round this?
      Secondly, I have had a root around the .zip file provided on my sites backup, however was unable to locate any file in there with the name of Single.php. Does this file exist in the Pagelines theme?
      By the way, this is the unsafe article: http://support.pagelines.me/docs/customization/create-a-custom-page-template/ (Click at your peril).
       
    • Anthony CALCI
      By Anthony CALCI+
      Hello,
      I have switched from the Framwork theme to DMS theme on http://calcipatrimoine.theproofingcompany.fr (miror site of http://calci-patrimoine.com).
      But I have now only the Primary sidebar in the Widget section ! Secondary sidear, Footer sidebar have all disapear...
      Can I have help to have them back ?
      Regards,
      Anthony
    • colleenc
      By colleenc+
      I am having an issue with the size of the font in a text box widget on my sidebar. It has me completely baffled because I have two text widgets on my sidebar and the other one is displaying perfectly. 
      The sole difference between the two is the amount of text in the widget, but that can't be the problem.
      My site is: loveandnudes.com and the text widgets are on the right side at the top. 
      I have duplicated the one with the issue and I am fiddling with it right now to see if I can find a solution. But I would love any suggestions. I though CSS would do the trick, but either I tried the wrong thing - or I put it into the wrong place.
      Thanks for your help!
×