Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter aquastar

    (@aquastar)

    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 https://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;
    }
    Thread Starter aquastar

    (@aquastar)

    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?

    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;
    Thread Starter aquastar

    (@aquastar)

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

    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;
    }
    Thread Starter aquastar

    (@aquastar)

    Thanks for that, worked fine ??

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

    eg https://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?

    Thread Starter aquastar

    (@aquastar)

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

    Thread Starter aquastar

    (@aquastar)

    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

    https://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(); ?>
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Twenty Ten Mods’ is closed to new replies.