• Resolved edjacob

    (@edjacob)


    I would like to put the below code into my page.php file to make a border with rounded corners on all my static pages.

    div class="roundedcornr_box_632442">
       <div class="roundedcornr_top_632442"><div></div></div>
          <div class="roundedcornr_content_632442">
    -------------------------------
    </div>
    <div class="roundedcornr_bottom_632442"><div></div></div>
    </div>

    Is there some kind soul out there who could tell me where to insert it in here?

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    get_header(); ?>
    
    	<div id="content" class="narrowcolumn" role="main">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<div class="entry">
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    <?php if( function_exists(page2cat_pages)){ page2cat_pages($post->ID);} ?>
    
    				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
                    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    	</div>
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    My site is at:

Viewing 1 replies (of 1 total)
  • I’m a bit confused as to exactly what you are doing? Do you have the css to match the edits you are trying to make? Inserting div classes doesn’t do anything without the matching css…..

    We would need to see the css to know where to put the classes you list…as the css controls what the classes do….

    Where is this code coming from? Is it from somewhere else in your theme?
    <div class="roundedcornr_top_632442"><div></div></div>

    I’m just wondering why you have so many closing tags without them being opened anywhere?

    I don’t think we have nearly enough info here…..

Viewing 1 replies (of 1 total)

The topic ‘Where to put html in page.php’ is closed to new replies.