• 0
Sign in to follow this  
Followers 0

Boxes in the Sidebar

Question

Posted · Report post

Really really glad you guys got the forum back up - the attack last week was killing me!!

 

I am trying to take advantage of the many boxes that I have made on my pagelines site.  I am basically trying to load some of my box groups dynamically by page.  I have found a widget (Advanced Text Widget) that lets me put relational php that can give me specific output by page, but I am not sure how to call the box groups.  Can anyone help me figure out how to call a box group? 

 

<?php

if ( is_page( 'ABOUT US' ) ) {
        // our ABOUT US page.
        CALL BOXES group HERE, 1 per row, random, max 5 boxes.

    }

?>

 

Thanks in advance for your help.

 

best,

seth

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

If you want to do this in PageLines Framework, the simplest method would be to create a child section of Boxes. To do this, simply download a fresh copy of PageLines Framework to your desktop, extract the .zip and navigate to pagelines/sections/ and find the Boxes section. Now open up your FTP client and upload the Boxes section folder to /wp-content/themes/child theme folder/sections/ Once added, this will over power the default Boxes section found in your /pagelines/ folder. Now open the section.php file in /wp-content/themes/child theme folder/sections/boxes/ folder and you will see the following lines code:
<?php
/*
	Section: Boxes
	Author: PageLines
	Author URI: http://www.pagelines.com
	Description: Creates boxes and box layouts
	Class Name: PageLinesBoxes
	Workswith: templates, main, header, morefoot
	Cloning: true
*/
Replace with the following:
<?php
/*
	Section: Boxes
	Author: PageLines
	Author URI: http://www.pagelines.com
	Description: Creates boxes and box layouts
	Class Name: PageLinesBoxes
	Workswith: templates, main, header, morefoot, sidebar1, sidebar2, sidebar_wrap
	Cloning: true
*/
Then save the file, this change will allow the Boxes section to load in your Sidebar areas and SIdebar Wrap. Now just configure the Boxes set you wish to be used in your Sidebar.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Seth,

 

Are you using DMS?

 

If so, we have a section called iBox.  Have you tried that?

 

Alternatively, there's a plugin called WP-Boxer or Boxer, which uses shortcode to create boxes that it called content blocks.

 

I don't think boxes really belong (personal opinion) in a sidebar per se.  But, if you want to use them, it may be best to use one of these options.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I am not using DMS as I just started my design a couple weeks before you launched it. I am not a great web designer, but all I want is for a mix of short headlines with images to load dynamically.  Not necessarily boxes per se.  But The boxes on Pagelines, give me the structure to do the headlines and small images in a sorted manner.  I have installed and played with WPboxer, but I have to create a whole new set of content boxes rather than leverage teh boxes I have already created in PAgelines.  Is it not possible to call the boxes using php into the sidebar?

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
Sign in to follow this  
Followers 0