hallo,
I'd like to add the hero section (or something equivalent) to the sidebar section of my blog.
But when I go to to the template section and select sidebar, no section is available!
Thoughts?
thank you
Michele
help: how to add a section to the sidebar?
Started by
michele
, Aug 28 2012 04:53 PM
4 replies to this topic
#1
Posted 28 August 2012 - 04:53 PM
#2
Posted 28 August 2012 - 05:00 PM
Sections cannot be added to the sidebar. Only widgets can be added. As an alternative, please use the regular text widget added to your sidebar and use HTML to add the content you want. For reference:
http://codex.wordpre..._Widgets_Screen
http://www.w3schools.com/
#3
Posted 29 August 2012 - 02:25 AM
@catrina, the PL sidebars are sections themselves. I think @michele is referring to the SB1, SB2 template areas, not inside the sidebar itself. Some sections are available in these areas, but most are not. For example the Highlight section is available in those template areas. The content box section (available for free from the store) is also available. You might also try the Sidebar Wrap area, which has a few more sections you can use like the Quickslider.
#4
Posted 29 August 2012 - 07:39 AM
thank you all.
actually I was referring to SB1 indeed.
When I check which sections are available for that area, I found none!
So what or how sections are supposed to go in that area?
#5
Posted 29 August 2012 - 08:54 AM
Hi,
Some sections are not available in certain areas, this is because they will either not function or look very odd. The Hero section for example, will not look great in the sidebar.
However, you can change this but we we're unable to provide support should you proceed.
Using your favourite FTP client navigate to:
/wp-content/themes/pagelines/sections/
Then choose the section you wish to use on sidebars, open the sections section.php file and where the line:
Add the following code:
So as an example below is the code for the Hero section so that it will be available on the Sidebars.
Hope this helps and please remember, we will be unable to provide support if you choose to use this customisation.
Some sections are not available in certain areas, this is because they will either not function or look very odd. The Hero section for example, will not look great in the sidebar.
However, you can change this but we we're unable to provide support should you proceed.
Using your favourite FTP client navigate to:
/wp-content/themes/pagelines/sections/
Then choose the section you wish to use on sidebars, open the sections section.php file and where the line:
Workswith:
Add the following code:
sidebar1, sidebar2, sidebar_wrap
So as an example below is the code for the Hero section so that it will be available on the Sidebars.
<?php /* Section: Hero Author: PageLines Author URI: http://www.pagelines.com Description: A responsive full width image and text area with button. Class Name: PLheroUnit Workswith: templates, main, header, morefoot, content, sidebar1, sidebar2, sidebar_wrap Cloning: true */
Hope this helps and please remember, we will be unable to provide support if you choose to use this customisation.











