nav-left cat-right
Matthias Pospiech > Web > wordpress > theme modifications

theme modifications




I moved the whole ’share buttons‘ to a function in functions.php, because it is a mess of code and used multiple times:

<div id="container">
<div id="left-div">
    <div id="left-inside">
        <?php if (have_posts()) : ?>
        <?php if(function_exists('bcn_display')): ?><div id="breadcrump"><?php bcn_display(); ?>
        </div><div style="clear: both;"></div><?php endif; ?>
        <?php while (have_posts()) : the_post(); ?>
        <!--Begin Article Single-->
        <div class="post-wrapper">
            <h1 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
                <?php the_title(); ?>
            <div style="clear: both;"></div>
            <?php the_content(); ?>
            <div style="clear: both;"></div>        
            <div class="pagenumbers"><?php wp_link_pages(array('before' => '<p>Pages:','after' => '</p>', 'next_or_number' => 'number'));  ?></div>    
            <?php edit_post_link('Edit entry.', '', ' | '); ?>
            <?php if(function_exists('wp_print')) { print_link(); } ?>
            <div style="clear: both;"></div>

used in ‚page.php‘ as

<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } 
else { ?>
<p class="pagination">
	<?php next_posts_link('&laquo; Previous Entries') ?>
	<?php previous_posts_link('Next Entries &raquo;') ?>
<?php } ?>

In header.php the banner code was removed, because it could not be switched of by an option.

In sidebar.php I removed the ‚about us‘ tab, because I do not want it, and it is not switchable by an option.

The breadcrumps, edit and print link and the page navigation was introduced as in the EarthlyTouch Theme.

The css for the sidebar page navigation was changed completely, since in the original it was only flat. Several minor changes were applied to the css file, such as removal of text-transfrom, or the adding of some space in padding or margins. All major changes are in a seperate file:

<div class="pagenumbers">
    <?php wp_link_pages(array('before' => '<p>Pages:','after' => '</p>', 'next_or_number' => 'number'));  ?>

Seiten: 1 2 3 4 5

Keine Antworten : “theme modifications”


  1. test | - […] The screenshot you see above is actually the exact pagination style we use for long posts that we break…
  2. How to Add Page-Link Tag (Multiple Page Post / nextpage) Support to WordPress | The Buzz Media - [...] The screenshot you see above is actually the exact pagination style we use for long posts that we break…

Einen Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.