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

theme modifications




No special changes were done to the php code, only the additions of breadcrumps, edit link, pagenumbers and such as already reported for the other themes were applied.

In the main css file all text colors were changed to ‚#616368;‘ to increase the contrast.

The main layout changes and additions are again in a separate file:

<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>




The functions.php got a new function ’shareButtons($visibility)‘ to remove the huge code of the Share Button outside of the theme files.

in sidebar.php the following code had to be disabled:

<?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 } ?>

simply because this option has different values in other themes, for example ‚invisible‘, which means that the ad is shown if one switches the theme. In that sense it is a bug across all themes.

In the main css file I have again increased the contrast of all text colors to ‚#53555a;‘ and removed all ‚text-transform: lowercase‘ occurences.

All further changes in style are in this css 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.