Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the amp domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u315450884/domains/famousbloggers.net/public_html/wp-includes/functions.php on line 6260

Notice: Function amp_has_paired_endpoint was called incorrectly. Function cannot be called before services are registered. The service ID "paired_routing" is not recognized and cannot be retrieved. Please see Debugging in WordPress for more information. (This message was added in version 2.1.1.) in /home/u315450884/domains/famousbloggers.net/public_html/wp-includes/functions.php on line 6260

Notice: Function amp_is_available was called incorrectly. `amp_is_available()` (or `amp_is_request()`, formerly `is_amp_endpoint()`) was called too early and so it will not work properly. WordPress is not currently doing any hook. Calling this function before the `wp` action means it will not have access to `WP_Query` and the queried object to determine if it is an AMP response, thus neither the `amp_skip_post()` filter nor the AMP enabled toggle will be considered. The function was called too early (before the plugins_loaded action) to determine the plugin source. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /home/u315450884/domains/famousbloggers.net/public_html/wp-includes/functions.php on line 6260

Notice: Function amp_has_paired_endpoint was called incorrectly. Function cannot be called before services are registered. The service ID "paired_routing" is not recognized and cannot be retrieved. Please see Debugging in WordPress for more information. (This message was added in version 2.1.1.) in /home/u315450884/domains/famousbloggers.net/public_html/wp-includes/functions.php on line 6260

Notice: Function amp_is_available was called incorrectly. `amp_is_available()` (or `amp_is_request()`, formerly `is_amp_endpoint()`) was called too early and so it will not work properly. WordPress is not currently doing any hook. Calling this function before the `wp` action means it will not have access to `WP_Query` and the queried object to determine if it is an AMP response, thus neither the `amp_skip_post()` filter nor the AMP enabled toggle will be considered. The function was called too early (before the plugins_loaded action) to determine the plugin source. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /home/u315450884/domains/famousbloggers.net/public_html/wp-includes/functions.php on line 6260

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the heartbeat-control domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u315450884/domains/famousbloggers.net/public_html/wp-includes/functions.php on line 6260

Deprecated: Creation of dynamic property SCHEMA_WP_Breadcrumbs::$post is deprecated in /home/u315450884/domains/famousbloggers.net/public_html/wp-content/plugins/schema-premium/includes/extensions/breadcrumbs.php on line 73

Deprecated: Creation of dynamic property SCHEMA_WP_Breadcrumbs::$show_on_front is deprecated in /home/u315450884/domains/famousbloggers.net/public_html/wp-content/plugins/schema-premium/includes/extensions/breadcrumbs.php on line 74

Deprecated: Creation of dynamic property SCHEMA_WP_Breadcrumbs::$page_for_posts is deprecated in /home/u315450884/domains/famousbloggers.net/public_html/wp-content/plugins/schema-premium/includes/extensions/breadcrumbs.php on line 75

Warning: Cannot modify header information - headers already sent by (output started at /home/u315450884/domains/famousbloggers.net/public_html/wp-includes/functions.php:6260) in /home/u315450884/domains/famousbloggers.net/public_html/wp-includes/feed-rss2.php on line 8
styling page navigation | Famous Bloggers https://famousbloggers.net/tag/styling-page-navigation How To Blog and Start a Business Thu, 01 Dec 2011 06:44:29 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.4 10041789 How to add Page Navigation to Thesis Theme and CSS Style it using Thesis OpenHook and WP-PageNavi Plugins https://famousbloggers.net/how-to-add-page-navigation-to-thesis-theme-and-css-style-it-using-thesis-openhook-and-wp-pagenavi-plugins.html#utm_source=rss&utm_medium=rss&utm_campaign=how-to-add-page-navigation-to-thesis-theme-and-css-style-it-using-thesis-openhook-and-wp-pagenavi-plugins https://famousbloggers.net/how-to-add-page-navigation-to-thesis-theme-and-css-style-it-using-thesis-openhook-and-wp-pagenavi-plugins.html?noamp=mobile#comments Thu, 21 Jan 2010 09:52:56 +0000 https://famousbloggers.net/?p=987 I was trying today to add an easy page navigation to FamousBloggers blog, and I was thinking about using WP-PageNavi as it's ready to use and all what we need is not install it and tell Thesis where to display it in our blog, then styling the way it looks is not a big deal. So let's go through this three easy steps, but before that try to backup your code and database.

The post How to add Page Navigation to Thesis Theme and CSS Style it using Thesis OpenHook and WP-PageNavi Plugins appeared first on Famous Bloggers.

]]>
Thesis theme is one of the most exciting themes ever, I think this way about it because one thing rather than full controlling of your theme and design from inside your WordPress control panel and the other features included on it easy SEO for your blog, Thesis teach you and enhance your skills each time you tweak it.

I was trying today to add an easy page navigation to FamousBloggers blog, and I was thinking about using WP-PageNavi as it’s ready to use and all what we need is not install it and tell Thesis where to display it in our blog, then styling the way it looks is not a big deal. So let’s go through this three easy steps, but before that try to backup your code and database.

1 – Install WP-PageNavi plugin

Get WP-PageNavi plugin from it’s official website, and install it by the normal way like any other plugin, extract the zip file upload it to your plugin directory then check the plugin settings if needed. Note that after this step the page navigation may not show because Theses Theme doesn’t know about it yet! So we have to do a simple step to display it!

2- Tell Thesis where to display the page navigation

In most cases you will like to display the page navigation after the content section, and using Thesis OpenHook plugin is pretty easy thing. So you will need install Thesis OpenHook if your blog doesn’t have it.

After installing the plugin, open Theses OpenHook settings and scroll to “After Content” section, copy and past this code in the field as shown on the image below:

Thesis OpneHock
Thesis OpneHock

The code:

[php]
if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); }
else { ?>
<div class="pagination">
<div class="alignleft"><?php next_posts_link(‘&laquo; Older Entries’) ?></div>
<div class="alignright"><?php previous_posts_link(‘Newer Entries &raquo;’) ?></div>
</div>
<?php
}
[/php]

Don’t forget to tick the three check boxes under the field as shown in the image above where the green arrows to “Execute PHP on this hook”, “Remove Thesis post navigation ” and “Remove Thesis prev/next posts” (the third one is optional), I just didn’t style it yet, and I don’t like the way it show long titles of next and previous posts, I prefer one word or a small image!

3- Styling your page navigation

Here is the fun part, I have included the style code I am using here on FamousBloggers blog, you can change colors font size or any other elements to match your blog theme. Copy and past the code o your custom.css file to over ride the original style of the plugin, your page navigation will look like this: page_navigation

The code:

[css title=”custom.css”]
/*
——– pagenavi———————————–
*/
.wp-pagenavi { margin: 15px 0px 15px 0px; }
.wp-pagenavi a, .wp-pagenavi a:link { font-size:16px; padding: 5px 9px; margin: 2px; text-decoration: none; border: 1px solid #e1e1c8; color: #413f36; background-color: #eeeeee; }
.wp-pagenavi a:visited { font-size:16px; padding: 5px 9px; margin: 2px; text-decoration: none; border: 1px solid #e1e1c8; color: #413f36; background-color: #eeeeee; }
.wp-pagenavi a:hover { font-size:16px; border: 1px solid #608e7a; color: #FFF; background-color: #2ab7d9; }
.wp-pagenavi a:active { font-size:16px; padding: 5px 9px; margin: 2px; text-decoration: none; border: 1px solid #e1e1c8; color: #413f36; background-color: #eeeeee; }
.wp-pagenavi span.pages { font-size:16px; padding: 5px 9px; margin: 2px 2px 2px 2px; color: #000000; border: 1px solid #e1e1c8; color: #413f36; background-color: #eeeeee; }
.wp-pagenavi span.current { font-size:16px; padding: 5px 9px; margin: 2px; font-weight: bold; border: 1px solid #608e7a; color: #FFF; background-color: #2ab7d9; }
.wp-pagenavi span.extend { font-size:16px; padding: 5px 9px; margin: 2px; border: 1px solid #608e7a; color: #FFF; background-color: #2ab7d9; }

[/css]

Don’t forget to clear your cash in case you are using WP Super Cache plugin to see the changes you have made.

That’s it!

Writing about Thesis is pleasure, I am thinking of having a series of post here talking about how to customize Thesis Theme. If you think Thesis need more posts from bloggers who have little experience like me then encourage me by adding a comment to this post.

Need fully customized Thesis Skins? Check out ThesisAwesome.com

Thesis_468x60

The post How to add Page Navigation to Thesis Theme and CSS Style it using Thesis OpenHook and WP-PageNavi Plugins appeared first on Famous Bloggers.

]]>
https://famousbloggers.net/how-to-add-page-navigation-to-thesis-theme-and-css-style-it-using-thesis-openhook-and-wp-pagenavi-plugins.html/feed 76 987