Jump to content

Archived

This topic is now archived and is closed to further replies.

Toby

Alter 'PostNav' section to work with pages

Recommended Posts

Toby    2
Toby

Hi, I would like to know if there is a way to change the 'postnav' section to display a selection of pages in the same way it does posts.

This will allow my user to flick through similar pages within a group.

 

Thanks

Share this post


Link to post
Share on other sites
Toby    2
Toby

Ok, great so how would i create my own 'style class' so i can call it for individual sections?

 

Say I want to hide the next section/button, i think i am on the right track with this.
 

 

.hide-next {

visibility:hidden;

}

 

But I don't know how to identify the 'next' class.

 

p.s. Obviously i would paste 'hide-next' in the styling class in the 'postnav' section.

Share this post


Link to post
Share on other sites
Rob    547
Rob

In the section you're trying to edit, you'll see a Custom Class field.  Type into it hide-next.   Then apply your CSS to Custom Code.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • Houston Haynes
      By Houston Haynes+
      I'm still "piercing the veil" of platform 5, with page navigation the current subject of interest. I worked with a few plugins (the most useful being Next Page Not Next Post) but I wanted to take a step back and start with an example - and see if I could get a bit of help "inside the beltway". 
      What I'm looking to do is substantially similar to the pagelines docs pages - see my annotated screenshots attached. At the top of a "child" page I want a link back to the "parent" page - and at the bottom of that "child" page I want to place a similar link to the "grandchild" page. At the bottom of each grandchild page I want there to be navigation "buttons" to sibling pages in the hierarchy. 
      "Next Page Not Next Post" handles what I'm expecting for "sibling" navigation, but I'm having a bit of trouble getting over the logistical hump of applying that functionality to my page "Template C" instance only. And per the attached examples, while researching how to solve this problem I see on the Pagelines site *itself* that the navigation elements are in place - and I especially like the oval button formatting of the sibling page navigation.
      So - really, my question is two-part:
      Are there plugins/code snippets/tutorials/threads here that show how Pagelines achieved their page hierarchy nagivation, and  Is there a tutorial (or advice from generous contributors here) on how to use the PHP templates to override the content portion of the page to add the navigation elements? Thanks in advance!


    • lutz
      By lutz
      Hi everybody,
      I use Pagelines for some years now, but for the first time I have to split up posts into several pages.
      Unfortunately, <!-- nextpage --> doesn't work.
      Can please someone help me, making that work?
      I don't have the time to change the theme and need the post split up because it would be way too long, espcially on mobile displays ...
      Thanks in anticipation!!!
    • eusebius
      By eusebius+
      Hello,
      I recently added a function that allowed me to use the same tag taxonomy for both posts and pages. Thank God, it is working well.
      Now, I want to modify the standard post loop in the WP Loop section to show both of those post types whenever I navigate to the archive of one of those tags. After researching a bit, I found what I believe is the right code from the Codex and have tried to include it in section.php of my overridden section, but it doesn't seem to work. Here is what I have beginning from about Line 156:
      /* * Standard loop. */ // The Query function standard_loop() { $args = array('post_type' => array( 'post', 'page' )); $query = new WP_Query( $args ); if( $query->have_posts() ) while ( $query->have_posts() ) : the_post(); the_content(); endwhile; } function loop(){ $count = 0; global $plpg; if( have_posts() ) while ( have_posts() ) : the_post(); $count++; $format = get_post_format(); What am I doing wrong?
      Thanks in advance.
    • JudithKlinger
      By JudithKlinger+
      All of my pages have been overwritten to be a contact page. My entire site converted to a contact page. Is this a bug?? Perhaps associated with the upgrade (which I have't done yet?)
      Trying very hard not to panic...
      The editor had been behaving strangely, sluggish, slow to respond, unpredictable actions. 
      url: world-eats.org
      DMS2, Chrome Version 38.0.2125.122
      Single site install on WP 4.0
    • kulmetehan
      By kulmetehan
      Hi guys,
       
      So I don't know what exactly is going on. But I get a "Error occurred: 404 - not found" whenever I try to visit any page on my website, except for the Homepage. Even though the pages are set up and published, I get this error.
       
      Any idea where it's coming from and how to fix it? Thanks!
       
      Please check out for yourself at: http://rijschoolacademie.nl/
       
×