Forum Replies Created

Viewing 15 replies - 16 through 30 (of 39 total)
  • Thread Starter Ncastro340

    (@ncastro340)

    Awesome, I’m glad you were able to get it to work.
    I appreciate your compliment and putting the fridge outside is a clever idea, why not take advantage of that cold weather
    Happy Holidays,
    nick

    Thread Starter Ncastro340

    (@ncastro340)

    Looking at your site, I think by moving the clear:both; div container outside the main container so it stands on its own should align both of your images.

    Thread Starter Ncastro340

    (@ncastro340)

    Here is the way I have done it exactly. You can see I placed the series of containers after the site description and before the navigation/access.
    I have the largest container “logo-box”, within it I have div id=”left” and div id=”right”…end divs. All of this is followed by the clear:both; <div> (which is outside the largest div “logo-box” [I notice in yours this div is inside the main div..it should be outside]

    <div id="site-description"><?php bloginfo( 'description' ); ?></div>
    
    <div id="logo-box">
      <div id="left">
      <img class="aligncenter size-full wp-image-4673" title="DYEB_logo_ad" src="https://www.dropyourenergybill.com/wp-content/uploads/2010/11/DYEB_logo_ad1.png" alt="" width="339" height="143" /></a>
      </div><!-- left -->
      <div id="right">
    <?php bannerrotatorfx_echo_embed_code("settings6.xml"); ?>
         </div><!-- right -->
    
     </div><!-- container -->
    
    <div class="clear"></div>
    <!-- #branding -->
    
    			<div id="access" role="navigation">

    This string of code I removed..It is a very good idea to save this and make a note about where it was in case the result doesn’t turn out and you need to return the original<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />

    Thread Starter Ncastro340

    (@ncastro340)

    Yes I did resolve this, I guess I just forgot to set this thread to resolved.

    I replaced the lines you mentioned with my own containers containing my logo and slideshow and a container holding both of those. You can see above the attributes I gave each of those div containers.
    Followed by a container with the attribute: Clear:both;

    Thread Starter Ncastro340

    (@ncastro340)

    Thanks for the timely reply, it was a plug in conflict. I deactivated them all and everything was working as it should. I’m not sure which plug in it was, I only activated the most important and currently used plugins and hoped it was none of these. To my surprise, it was none of them, Nonehtless, problem solved.

    Thread Starter Ncastro340

    (@ncastro340)

    I am using a twenty ten child theme I have been creating.
    My site is here

    Thread Starter Ncastro340

    (@ncastro340)

    I have been working from your tutorials which are good by the way.
    The most frustrating thing is that I have already done this, and it works fine on one of my other sites!

    As far as I can see my functions.php, sidebar.php, sidebar1.php, page-sidebar1.php are identical to both your tutorial and what I copied for my other site. And still the left sidebar does not display(only focusing on left right now).

    What is even more weird is that when I display the left sidebar content, content displays from my right sidebar.

    I have quadruple checked this from all of the angles I know to check, it just does not add up.

    Which makes me think the conflict is coming from somewhere outside of the 4 previously mentioned files.

    But where, I cannot see.

    If you have an idea what may be causing this, I would really…really appreciate ANY suggestion. Because at this point, I am drawing a blank plus running out of hair to pull!

    Thread Starter Ncastro340

    (@ncastro340)

    My two right sidebar and my two left sidebar templates works fine, so the left and right sidebars DO work.

    But it doesn’t make sense why they won’t work individually, and together for my 3 column template.

    Thread Starter Ncastro340

    (@ncastro340)

    Thanks it had to do with the second container. I made a container for my header logo and slideshow and named it container, but there was already an id# container. Once I changed the name of the second container all fell into place.
    Thanks for all the help!

    Thread Starter Ncastro340

    (@ncastro340)

    hmm, for some reason it is still displaying at the bottom of the page, maybe there is a plug in conflict. How can I set my archive pages(posts) to display a different page template? Because when I am at the post editing screen, I don’t see an option to change the page template. Or are page templates strictly PAGE (not post) templates..?

    Thread Starter Ncastro340

    (@ncastro340)

    Here is all of my page.php
    I know it can’t be too difficult, i’m just not sure exactly “where” the problem is.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter Ncastro340

    (@ncastro340)

    This is weird, it wasn’t like this a couple of days ago, the sidebar was functioning fine, and this is only happening on my single post pages. Here is my sidebar.php, and there is no div tags enclosing my “primary” id.

    <?php
    /**
     * The Sidebar containing the primary and secondary widget areas.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    ?>
    
    		<div id="primary" class="widget-area" role="complementary">
    			<ul class="xoxo">
    
    <?php
    	/* When we call the dynamic_sidebar() function, it'll spit out
    	 * the widgets for that widget area. If it instead returns false,
    	 * then the sidebar simply doesn't exist, so we'll hard-code in
    	 * some default sidebar stuff just in case.
    	 */
    	if ( ! dynamic_sidebar( 'sidebar-right-one' ) ) : ?>

    And here is my page.php(the page type for my single posts), and there is no div enclosure before the container.

    <?php
    /**
     * The template for displaying all pages.
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    		<div id="container">
    			<div id="content" role="main">
    
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    I see why from what you have said, but I am still confused on where it is that I can edit this to fix the problem.

    Thanks for your help, I really appreciate it.

    Thread Starter Ncastro340

    (@ncastro340)

    I see <div id=”primary” class=”widget-area” role=”complementary”> in my sidebar.php, and I see the main content container in my page.php, but where can I edit the file with both of these strings of information..?

    What you have pointed out makes sense, but I do not see where I can edit this. If you could just point me in the right direction, I would rally appreciate it.

    Thanks for your help.

    Thread Starter Ncastro340

    (@ncastro340)

    Thanks, once I removed this code in header.php the images were no longer there.

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

    Thread Starter Ncastro340

    (@ncastro340)

    how can I prevent this from happening?

Viewing 15 replies - 16 through 30 (of 39 total)