Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same problem for me.. Page just outputs the code..
    Some help please..?

    Thread Starter ozcam

    (@ozcam)

    Hi again..
    I just tried again placing php code in a txt box inside a sidebar widget and was able to get the code to run.. So it seems that maybe only php code in pages is not working

    Thread Starter ozcam

    (@ozcam)

    Yes I have been through the documentation and have made all the suggested changes. I have tried switching themes, and deactivating all plugins then reactivating only the exec-php one..
    I have tried to place code everywhere..
    I am not sure what you mean by using the html editior, when applying code to a page for example I just place it in the text editor.. which has had the visual element deactivated..

    Thread Starter ozcam

    (@ozcam)

    Thanks ,but I already have made all the modifications as mentioned in the documentation, simply cannot even get the most basic php code to work?

    Thread Starter ozcam

    (@ozcam)

    Hi..
    Firstly I need to use a php widget because I am extracting data from an mysql DB. I know I can just use a <p> tag, but this does not format the data very well. I have 10 lines of data and each line contains 4 separate elements. I would like to display these so they look neat. If I use a <p> tag this will not order them the same as using a table structure.

    Forum: Fixing WordPress
    In reply to: Header Image
    Thread Starter ozcam

    (@ozcam)

    Hi..
    What I would like to do is place a smaller image as a header graphic.
    Thanks

    Forum: Fixing WordPress
    In reply to: Header Image
    Thread Starter ozcam

    (@ozcam)

    Hi
    Thanks for your input , but I still do not understand..
    Firstly I guess its a page as its the page that first loads when I enter the site.
    But if I want to change the image or if I want to call the image and position with css how do I achieve this.. I cannot see where?
    I know how to place and position the image within css, but how do I remove the call to the exisiting header image?
    Below is the relevant bit from header.php
    ——-
    <div id=”header”>
    <div id=”masthead”>
    <div id=”branding” role=”banner”>
    <?php $heading_tag = ( is_home() || is_front_page() ) ? ‘h1’ : ‘div’; ?>
    <<?php echo $heading_tag; ?> id=”site-title”>
    <span>
    ” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?>
    </span>
    </<?php echo $heading_tag; ?>>
    <div id=”site-description”><?php bloginfo( ‘description’ ); ?></div>

    <?php
    // Check if this is a post or page, if it has a thumbnail, and if it’s a big one
    if ( is_singular() &&
    has_post_thumbnail( $post->ID ) &&
    ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘post-thumbnail’ ) ) &&
    $image[1] >= HEADER_IMAGE_WIDTH ) :
    // Houston, we have a new header image!
    echo get_the_post_thumbnail( $post->ID, ‘post-thumbnail’ );
    else : ?>
    <img src=”<?php header_image(); ?>” width=”<?php echo HEADER_IMAGE_WIDTH; ?>” height=”<?php echo HEADER_IMAGE_HEIGHT; ?>” alt=”” />
    <?php endif; ?>
    </div><!– #branding –>

    <div id=”access” role=”navigation”>
    <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    <div class=”skip-link screen-reader-text”>“><?php _e( ‘Skip to content’, ‘twentyten’ ); ?></div>
    <?php /* Our navigation menu. If one isn’t filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    <?php wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); ?>
    </div><!– #access –>
    </div><!– #masthead –>
    </div><!– #header –>
    Thanks again

Viewing 7 replies - 1 through 7 (of 7 total)