• I created a new blank page and added

    <?php
    /* Template Name: testPage */
    ?>
    
    <?php get_header(); ?>
    
    <img src="/wordpress/wp-content/themes/childfolderOfTwentyTen/images/sunrise-class-scedule.png" alt="Class Schedule" width="900" height="1165" align="top" />
    
    <?php get_footer(); ?>

    My problem is the image is resized. Can anyone help me get it to display at original size. Is there a way to disable the resize function on custom made pages?

    Thanks,
    Mike

Viewing 5 replies - 1 through 5 (of 5 total)
  • For a start, you shouldn’t use relative urls in WordPress. Try using:

    <img src="<?php echo get_stylesheet_directory_uri() ?> >/images/sunrise-class-scedule.png" alt="Class Schedule" width="900" height="1165" align="top" />

    The actually resizing may be caused by your theme’s CSS.

    Check your stylesheet. Many stylesheets for WordPress have set images sizes include in them. Look in the stylesheet to see if there are any size definitions for any img elements.

    Thread Starter cygnus_x1

    (@cygnus_x1)

    ok,, I’ll check both those methods.
    Thanks

    Thread Starter cygnus_x1

    (@cygnus_x1)

    ok, I’ve tried playing around with the css, and made the change to the image source anding the php.

    Now I’m getting a big blank rectangle with the image name in the upper left corner. The rectangle seems to at least be closer the the image dimensions. But still no image there. The theme I’m using is a child theme to the twentyten theme. So far I’ve:

    1. Created a child theme folder.

    2. Created a new style.css file within my child folder.

    3. Copied a handfull of the css rules to the ‘style.css'<(should this be a different name?) file I created.

    4. Made some simple changes to margin padding around the header to my own stylesheet. All of which works perfectly so far.

    5. I added an image folder to my child theme folder to put the large image in there. Should it be done that way?

    6. I created a new template page very simple,,,just added the get header and footer with the image source line inbetween. Which seems to be heading in the right direction but still no image being displayed.

    I originaly tried inserting the image as a post from the edit page admin area and got the image size reduction issue. Plus it leaves quite a bit of space between the header and the image that way.

    Can you post a link to a page that demonstrates this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help with a striped down, new page.’ is closed to new replies.