I have adapted version 0.6 of the Neo-Sapien theme by incorporating the archive thumbnails that you find in the Monotone theme.
You can see this by going to website www.roadsigns.me.uk and clicking on any of the Category or Archive links.
I didn’t get the code working that automatically makes the 75 pixel high thumbnails, so I just put some code in that makes appropriate width and height attributes in the <img> tag. That works ok for me, but my images aren’t bigger than about 300 x 300 so I don’t have a big bandwidth overhead.
I also made some other changes to the theme appearance, made it widget aware, and made special Catalogue and No-overtaking tabs.
Have a look at the Google Ads and the Paypal button too.
I have posted the principal new/altered files in wordpress.pastebin.com thus:
https://wordpress.pastebin.com/VVVW4q6X – style.css
https://wordpress.pastebin.com/hK1eMeER – archive.php
https://wordpress.pastebin.com/FTQ25C08 – catalogue.php
https://wordpress.pastebin.com/9bNQYk5p – category-no-overtake.php
I hope this may be of use.
These web pages are produced with WordPress 2.9.2, using the theme Neo-Sapien version 0.6 by Small Potato as amended with some additions from theme Monotone 1.1 by Noel Jackson / eight6.
]]>I am using a customised version of theme neo-sapien version 0.6 which was not widget aware. It did not have a functions.php file in its theme folder (that’s /var/www/wordpress/wp-content/themes/neo-sapien-dev on my computer), so I copied the one from the Classic theme.
Amongst other things, that contains the code
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ”,
‘before_title’ => ”,
‘after_title’ => ”,
));
In wp-admin -> Appearance -> Widgets, widgets are now enabled, so I added a text widget to the sidebar, put some stuff in it and saved it.
(As expected, nothing yet appears on the site.)
I added
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
into my php code and saved it.
(On refreshing the web page of the site, the widget appears.)
It does not matter where you put it, widget(s) appear at that place.
If you put it in more than once, the same widget(s) appear more than once.
You can omit the static alternative to the dynamic widgets.
If you want more than one widget area, edit functions.php to use the simpler version described in the codex, e.g.:
if ( function_exists(‘register_sidebars’) )
register_sidebars(2);
If you put the same call to e.g. dynamic_sidebar(1) more than once, the same widget(s) appear more than once.
More usual is to have dynamic_sidebar(1) in one place and dynamic_sidebar(2) in another.
]]>I have “widgetized” the sidebar of my theme (Neo-Sapien v06 0.6) and now can see the list of widgets when I click on the link “Widgets” under “Design”. There are not errors on my web page.
I’ve added a couple of widgets, but they are not showing up at all on my pages. What have I done wrong?
My blog’s address is https://www.tp79reunion09.com
Following is my sidebar code….
<div id="obar">
<div class="sub-obar">
<ul>
<?php if (!function_exists('dynamic_sidebar') && !dynamic_sidebar()): else: ?>
<li><h2>Categories</h2>
<ul>
<?php wp_list_cats('sort_column=ID&optioncount=0&children=0'); ?>
</ul>
</li>
<li><h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php get_links_list(); ?>
<?php endif; ?>
</ul>
</div>
<div class="sub-obar">
<ul>
<li><h2><?php _e('Posts by Date'); ?></h2>
<ul>
<li><?php get_calendar(); ?></li>
</ul>
</li>
<li><h2><?php _e('Search'); ?></h2>
<ul>
<li><?php include(TEMPLATEPATH . '/searchform.php'); ?></li>
</ul>
</li>
</ul>
</div>
</div>
]]>This is a long post, so I’ll start with the question: what change do I need to make to my index.php so that when a reader clicks on a category or date on the calendar, the resulting displayed post shows more than 4 or 5 lines (ideally all lines).
I am using the Neo-Sapien theme for my blog (https://www.tp79reunion09.com). In the theme, the loop as follows:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content('Read more…'); ?>
<p class="postmetadata">
<?php the_time('F jS, Y') ?>
<?php _e('Categories:'); ?> <?php the_category(', ') ?> . <?php _e('Author:'); ?> <a href="<?php the_author_url(); ?>"><?php the_author(); ?></a> . <?php _e('Comments:'); ?> <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> <?php edit_post_link('Edit this entry', '', ''); ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation"><?php posts_nav_link('','','Previous page') ?> <?php posts_nav_link('','Next page','') ?></div>
<?php else : ?>
<div class="post">
<div class="post-title><h2><?php _e('Not Found'); ?></h2></div>
<div class="entry"><?php _e('Sorry, but you are looking for something that isn't here.'); ?></div>
</div>
<?php endif; ?>
What do I change? If showing all lines isn’t possible (or a good idea), how do I get the “read more” to show up? Right now there’s a […] where it cuts off but it’s not a hyperlink.
Thanks!
Rafael
]]>It has four columns. Color scheme is red, black, and white. The main header image is from Casshern’s movie poster.
]]>