WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Ten Mods (10 posts)

  1. aquastar
    Member
    Posted 3 years ago #

    Hi, I really like Twenty Ten its great to use and I want to start using it more for my sites :)

    Ive set up an info type site and I want to

    1. Remove the EDIT at the bottom on the page template. What bit of code do I need to remove?

    http://www.profitaccountingsoftware.com/non-profit-accounting-software

    2. Remove the posted in (bottom of post) and posted on (top of post) from the index (post) template. What bit of code do I need to remove?

    http://www.profitaccountingsoftware.com/

    3. Also I want to add 4 small images 130 x 130 on the left hand side on the One column, no sidebar Page Template. How could I do this?

    http://www.profitaccountingsoftware.com/privacy-policy

    4. Also any suggestions to fill in the large gap to the left or right of the large rectangular Google ads at the bottom of the pages?

    Thanks :)

  2. esmi
    Forum Moderator
    Posted 3 years ago #

  3. aquastar
    Member
    Posted 3 years ago #

    Hi esmi, excellent idea, thanks for the suggestion :) This will make it much easier when doing multiple sites. With the site above I have already made many changes there so I have done the child with another site and will go back and fix the other one later. I'm in no real hurry to get it all done but if you could help me step by step to get it all done that would be great :)

    So I have created a child for http://www.romantictubs.com/

    Ive added in the following code after the import to get rid of the title, change the font to Verdana and reduce the size of the font. It all worked ok apart from reducing the size of the font. Can you see any problems with the code?

    #site-title, #site-description { display:none; }
    
    body {
        font-family: Verdana, "Bitstream Charter", serif;
    }
    
    #content textarea {
    	color: #333;
    	font-size: 14px;
    	line-height: 22px;
    }
  4. aquastar
    Member
    Posted 3 years ago #

    The next thing that I want to do is to remove Posted on..... and Posted in..... at the top and bottom of the posts page. Im assuming that I need to remove some code in the child Main Index Template? or is there a better way?

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    You could amend the child's index.php template (or loop-index.php if you're using one). Or you could rewrite the twentyten_posted_on() function in your child's functions.php file.

    function twentyten_posted_on() {
    	printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
    		'meta-prep meta-prep-author',
    		sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
    			get_permalink(),
    			esc_attr( get_the_time() ),
    			get_the_date()
    		),
    		sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    			get_author_posts_url( get_the_author_meta( 'ID' ) ),
    			sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
    			get_the_author()
    		)
    	);
    }
    endif;
  6. aquastar
    Member
    Posted 3 years ago #

    You could amend the child's index.php template

    ok thanks how would I do that?

    Also Ive added in the following code after the import to get rid of the title, change the font to Verdana and reduce the size of the font. It all worked ok apart from reducing the size of the font. Can you see any problems with the code?

    #site-title, #site-description { display:none; }
    
    body {
        font-family: Verdana, "Bitstream Charter", serif;
    }
    
    #content textarea {
    	color: #333;
    	font-size: 14px;
    	line-height: 22px;
    }
  7. esmi
    Forum Moderator
    Posted 3 years ago #

    how would I do that

    Make a copy of loop.php and move it into the child theme. Rename the file loop-index.php and edit it accordingly.

    Can you see any problems with the code?

    Try:

    #content {
    	color: #333;
    	font-size: 14px;
    	line-height: 22px;
    }
  8. aquastar
    Member
    Posted 3 years ago #

    Thanks for that, worked fine :)

    Next thing that I want to do is to add x4 small column images (125x125) down the left hand side of the "one column no side bar page"

    eg http://www.romantictubs.com/privacy-policy

    Im assuming that I would need to create a new "one column no side bar page" in the child templates, what code would I need to create this page?

  9. aquastar
    Member
    Posted 3 years ago #

    Or should I use a two column template to make this easier?

  10. aquastar
    Member
    Posted 3 years ago #

    Im trying to put some images down the side of the "no side bar template" but it pushes the text down to the bottom of the page

    http://www.romantictubs.com/privacy-policy

    Can anyone see any probs with the code??

    <?php
    /**
     * Template Name: One column, no sidebar
     *
     * A custom page template without sidebar.
     *
     * The "Template Name:" bit above allows this to be selectable
     * from a dropdown menu on the edit page screen.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    <p><h2><img src="/wp-content/themes/minisite/images/image1.jpg" alt="Image 1" width="130" height="120"></h2></p>
    
    	  <p><h2><img src="/wp-content/themes/minisite/images/image2.jpg" alt="Image 2" width="130" height="120"></h2></p>
    
    	  <p><h2><img src="/wp-content/themes/minisite/images/image3.jpg" alt="Image 3" width="130" height="120"></h2></p>
    
    	  <p><h2><img src="/wp-content/themes/minisite/images/image4.jpg" alt="Image 4" width="130" height="120"></h2></p>
    
    		<div id="container" class="one-column">
    			<div id="content" role="main">
    
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    					<h1 class="entry-title"><?php the_title(); ?></h1>
    					<div class="entry-content">
    						<?php the_content(); ?>
    						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    						<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    					</div><!-- .entry-content -->
    				</div><!-- #post-## -->
    
    				<?php comments_template( '', true ); ?>
    
    <?php endwhile; ?>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic