I have a few questions I am setting this site up and I want to put a link into the menu to link it to another site, yet again due to the missing support of a menu the question is how I would do that. Secondly in the heading I want one line to be taller then the other, and not have them both change its height when I edit the css. Please let me know if i can change those things.
<?php
if( count( $navig_items ) > 0 ) {
echo '<div id="mainnavig">';
echo '<ul class="navigation">';
$cnt_li = 0;
while( $cnt_li < count( $navig_items ) ) {
echo $navig_items[ $cnt_li ];
$cnt_li ++;
}
echo '</ul>';
echo '</div>';
}
?>
You could hardcode custom link at the beginning or the end of a menu, like so:
<?php
if( count( $navig_items ) > 0 ) {
echo '<div id="mainnavig">';
echo '<ul class="navigation">';
$cnt_li = 0;
// custom link here
echo '<li><a title="Menu Item Label" class="anchorLink" href="http://remote.com">Menu Item Label</a></li>';
while( $cnt_li < count( $navig_items ) ) {
echo $navig_items[ $cnt_li ];
$cnt_li ++;
}
// ... or (another) custom link here
echo '<li><a title="Menu Item Two" class="anchorLink" href="http://remote_two.com">Menu Item Two</a></li>';
echo '</ul>';
echo '</div>';
}
?>
As for the other half of your question, I think I don’t get it…Text in heading is paragraph, maybe you could control font size of certain portions like so:
<p>Duis commodo nibh quis ligula tempus luctus. <span class="smaller-one">Etiam iaculis venenatis tortor ac luctus.</span> Morbi sollicitudin fermentum viverra.</p>
Please note that class “smaller-one” doesn’t exist by default, you’ll have to add it to “style.css” (bottom should be fine!):span.smaller-one { font-size: 1.8 em; }
If anyone is interested, I’ve successfully reintegrated the blog post functionality into this theme. It’s a solid, awesome design but it’s beyond me why anyone would go through the effort to make a WordPress theme if they’re just going to remove the primary function of WordPress. In keeping with the fluid, one-page design, I added SimpleModal and created a page_type called Blog that queries the posts. If a post is longer than the strlength it adds a “Read More” link that will open the full post in a SimpleModal popup when clicked. It looks nice and doesn’t break the original theme design.
This is the code I added to index.php:
} else if( $page_type == 'blog' ) {
// manage container
echo '<div class="short-articles" id="page_' . $page->ID . '">';
// get title
echo '<h1 class="sectionheading"><span>' . $page->post_title . '</span></h1>';
// any content?
if( $page->post_content ) {
$service_content = $page->post_content;
$service_content = preg_replace( '|(<a.>.*?<img.><.*?a>)|i', '$1 rel="service_' . $page->ID . '" $2', $service_content );
// save rel for colorbox
array_push( $rel_items, 'a[rel="service_' . $page->ID . '"]' );
// throw out the content
echo wpautop( $service_content );
}
// add to navig
if( $cnt_li_items == 0 ) $item_string = '<li><a href="#wrap" class="anchorLink" title="' .$page->post_title . '">' . $page->post_title . '</a></li>';
else $item_string = '<li><a href="#page_' . $page->ID . '" class="anchorLink" title="' .$page->post_title . '">' . $page->post_title . '</a></li>';
array_push( $navig_items, $item_string );
// check for blog posts
$args = array( 'numberposts' => 4, 'category' => '1,3', 'orderby' => 'post_date' );
$blogposts = get_posts( $args );
if( count( $blogposts ) > 0 ) {
$cnt_even = 1;
foreach( $blogposts as $blogpost ) {
$thetitle = $blogpost->post_title;
$getlength = strlen($thetitle);
$thelength = 22;
if ($getlength > $thelength) $posttitle = '<div class="widget"><h2>' . substr($thetitle, 0, $thelength) . '...</h2>';
else $posttitle = '<div class="widget"><h2>' . substr($thetitle, 0, $thelength) . '</h2>';
echo $posttitle;
$blog_content = $blogpost->post_content;
$getpostlength = strlen($blog_content);
$postlength = 180;
if ($getpostlength > $postlength) $postcontent = substr($blog_content, 0, $postlength) . '... <a href="javascript:;" rel="' . $blogpost->ID . '" class="readmore postpopup">[Read More]</a><p> </p>';
else $postcontent = substr($blog_content, 0, $postlength);
$blog_date = mysql2date('F j, Y', $blogpost->post_date);
$category = get_the_category($blogpost->ID);
$blog_cat = $category[0]->cat_name;
$permalink = get_permalink($blogpost->ID);
// save rel for colorbox
array_push( $rel_items, 'a[rel="blog_' . $blogpost->ID . '"]' );
// throw out the content
echo '<div class="postmeta">Posted under ' .$category[0]->cat_name.' on ' . $blog_date . '</div>';
echo $postcontent;
echo '</div>';
// add separator to make boxes tidy
if( $cnt_even%2 == 0 ) echo '<div style="width: 99%; height: 1px; line-height: 0; clear: both; display: block; padding: 0; margin: 0;" />';
$cnt_even ++;
// end subpage
}
}
echo '</div>';
// end manage container
</img.></a.></div>
It’s not a finished design but here is the test site if anyone wants to see it in action: http://copperstill.willsloan.com
feeleep, thanks for the theme too. It was perfect for what I was looking to do.


281 Purchases
122 Comments