Forum Replies Created
-
It occurs to me that we hid the standard nav so that I could use the Ambroseite next/previous plug in for nav in posts. Could that be why PageNavi isn’t showing up for pages?
My functions file is like this:
<?php
function graphene_slider_post_types(){
return array('post', 'page');
}
add_filter( 'graphene_slider_post_type', 'graphene_slider_post_types' );
// attaches the function my_post_nav to the hook graphene_post_nav
add_action ('graphene_after_post_content', 'my_post_nav');
// our function
function my_post_nav(){
// this will allow us to use other hooks but still only show on single posts
if ( is_single() && ! is_page() ) : ?>
<div id="my-post-nav"> <!-- div to contain your links -->
<?php previous_post_link_plus( array(
'order_by' => 'menu_order',
'loop' => false,
'max_length' => 0,
'tooltip' => 'Previous page',
'in_same_cat' => true,
'ex_cats' => '12'
) );?> |
<?php next_post_link_plus( array(
'order_by' => 'menu_order',
'loop' => false,
'max_length' => 0,
'tooltip' => 'Next page',
'in_same_cat' => true,
'ex_cats' => '12'
) );?>
</div>
<?php endif;
}
/******
* these next two remove the graphene breadcrumb and then add one
* which does not appear on the home page
*****/
// has to be called after the action is added
add_action ('after_setup_theme', 'wmrt_remove_graphene_bc');
function wmrt_remove_graphene_bc() {
remove_action ('graphene_top_content', 'graphene_breadcrumb_navxt');
}
add_action('graphene_top_content', 'wmrt_breadcrumb_navxt');
function wmrt_breadcrumb_navxt () {
//by calling this at this point is_home() works!
if ((function_exists('bcn_display')) && (!(is_front_page()))) {
echo '<div class="breadcrumb">';
bcn_display();
echo '</div>';
}
}
function graphene_filter_gettext( $translated, $original, $domain ) {
$strings = array(
'View full post' => 'Read More',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );
function laura_sharethis (){
?>
<div id="sharethis"><span class='st_facebook_hcount' displayText='Facebook'></span><span class='st_twitter_hcount' displayText='Tweet'></span><span class='st_plusone_hcount'></span><span class='st_fblike_hcount'></span></div>
<?php
}
add_action( 'graphene_after_post_content', 'laura_sharethis' );I really need to get some kind of navigation happening for pages and nothing seems to be working.
Any help?
Ken-
I put this is another thread but just wanted to let you know this is how I did it…I wanted other style choices in a drop down on the visual editor too…
Styles in tiny mce visual editor
http://funroe.net/projects/super-edit/
Plugins: WP Super Edit, WP Super edit theme classes
Adds CSS classes from your themes editor.css file to the visual editor
From forum:
Installed WP Super Edit and the associated WP Super Edit Theme Classes plugin.
Then you have to go to settings on the left of the WP dashboard > WP Super Edit > Configure Editor Plugins > check the box for Advanced CSS / styles Plugin then go to the Arrange Editor Buttons link at the top and drag the Custom Classes button onto the left side toolbars somewhere.
Then go the file in the theme folder editor-styles > and add whatever styles you want to show up in the drop down for styles to apply using the visual editor.
Ha, thanks, doubtful.
Look…I’m dialing in this slideshow paginated thing.
http://juicytravels.com/best-air-travel-sites/5-cool-flight-trackers-easy-pag/
So its a plug in that splits up your page, like “nextpage” sort of, but makes it a slideshow.
Problem is you lose the advantage of SEO optimization per page, but, I think it’s a better user experience. So if you have a multi page thing you want to do, so far this seems like a decent solution but I’m still looking around. I can’t get WP Page Navi to work for anything. Have you tried that and gotten it to work? I can’t figure out why mine just won’t work.
Someday I’ll actually get to do content!
Ha I know 🙂
I got it…
http://juicytravels.com/bay-area-mini-vacations/
}
#sharethis {
width:100%;
float:left;
text-align:center;
margin-top:50px;
}
By golly you’ve done it again:-)
http://juicytravels.com/best-air-travel-sites/cool-flight-tracker-sites/
That was a really helpful explanation of the hook thing. Thank you. I’ve read up on it and it was still confusing. That time it clicked.
And look…it’s not showing up on the home page slider!
They do all show up in that one pane below the slider which I’d like to stop from happening. Need to figure out how to control that space.
But I’d still like to get them anchored to the bottom of the page…not sure what the css setting would be? Like so they are always just above the footer, and never in the white space to the right of the photo, know what I mean?
and
http://juicytravels.com/bay-area-mini-vacations/
Getting close…yeay! Thank you!
