Forum Replies Created

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter dguyen

    (@dguyen)

    I decided to copy and paste my code work into a new text document and for some reason everything is fine. Maybe there was an issue with my original document… ASCII, UTF-8, etc…?

    Thread Starter dguyen

    (@dguyen)

    I decided to copy and paste my code work into a new text document and for some reason everything is fine. Maybe there was an issue with my original document… ASCII, UTF-8, etc…?

    Thread Starter dguyen

    (@dguyen)

    Alright, after some more deduction… I assume my extra padding between my #wrapper and the body is from the unusual placement of my <head> scripts/links inside of the <body> tags just before #wrapper. (ie. stylesheet, jQuery script, EditURI, WLWmanifest -which Firebug says these links are 0x14px in size)

    So the question is…
    Why are my <head> links/scripts finding their way inside the <body> tags when I use the get_header and get_footer calls?

    … is someone going to tell me how blatantly blind I’m being? What am I missing?

    Thread Starter dguyen

    (@dguyen)

    Thank you so much for the replies…I’ve racked my brain for another hour or so … can’t figure it out. Here is the entire page.php template file below.
    All works fine when the browser calls this file…but if I cut out everything #main div and above and place it in the header.php file and cut everything #footer and below into footer.php (whilst making my get_header and get_footer calls) I get a gap. No errors.

    I did notice nothing wrong when viewing the source, but inside Firebug, there are scripts/links from <head> showing up inside the <body> tag… which Firebug measures 14px in height…

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <?php wp_enqueue_script('jquery'); ?>
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    
    	<div id="wrapper">
    
    		<div id="header">
    
    			<div id="badge"><a href=<?php bloginfo('home'); ?>>Logo</a></div>
    
    			<ul id="menu">
    
    				<li class="about_us"><a href="<?php bloginfo('url'); ?>/about">About Us</a></li>
    				<li class="how_it_works"><a href="#">How it Works</a></li>
    				<li class="contact_us"><a href="#">Contact Us</a></li>
    				<li class="sign_up"><a href="#">Sign Up</a></li>
    
    			</ul>
    
    			<br class="clearfix" />
    
    		</div><!-- end #header -->
    
    				<div id="page_quote" class="large_quote black">
    			“Never has design been more important”
    		</div>
    
    		<div id="main">
    
    			<div id="content">
    
    				<?php if (have_posts()) : ?>
    
    					<?php while (have_posts()) : the_post(); ?>
    
    						<div <?php post_class(); ?> id="post-<?php the_id(); ?>">
    
    							<h1><?php the_title(); ?></h1>
    
    							<?php the_content(); ?>
    
    						</div><!-- end of each .post -->
    
    					<?php endwhile; ?>
    
    				<?php else : ?>
    
    				<?php endif; ?>
    
    			</div><!-- end #content -->
    
    			<br class="clearfix" />
    
    		</div><!-- end #main -->
    
    		<div id="footer">
    
    			<div class="sub">
    				<p>All content are copyright of FAQsMe. All Right Reserved.</p>
    			</div>
    
    		</div><!-- end #footer -->
    
    	</div><!-- end #wrapper -->
    
    <?php wp_footer(); ?>
    </body>
    
    </html>

    I must be completely dense? When comparing Firebug with the single page.php file vs. page.php (with get_header/get_footer) why are the link <head> links showing inside the <body> tags?

    Thread Starter dguyen

    (@dguyen)

    Thanks andrea_r…your help is always appreciated as well WPMU Tutorials.

    Thread Starter dguyen

    (@dguyen)

    Wrong forum, moving post to MU.

    Thread Starter dguyen

    (@dguyen)

    Ah yes, many thanks. Of course, I should always check the CSS styling reset I’ve never used before.

    Again thanks!

    Thread Starter dguyen

    (@dguyen)

    Had to completely delete and re-install a second time…don’t know why it worked this time.

    Thread Starter dguyen

    (@dguyen)

    ibaneznuke, it actually works fine when I clicked “My Journey” heading and the blog.azamstudio.com address works with stylesheet. Did you fix your problem?

    Thread Starter dguyen

    (@dguyen)

    ibaneznuke, i got your site to come up, theres no stylesheet working but it came up.

    Forum: Themes and Templates
    In reply to: Tag cloud
    Thread Starter dguyen

    (@dguyen)

    Thanks for the time and consideration…my issue was not a coding problem. WordPress seems to have an issue where I was using another theme with multiple sidebars and when I switched to this 1 sidebar theme, those widgets previously in a “sidebar 2” were just invisible. So I switched to a multi-sidebar theme to see the widgets, remove them…and returned to a single sidebar theme to re-add them…thanks for help anyhow. You have a great theme. I hope others figure out this widget fix soon!

    Forum: Themes and Templates
    In reply to: Tag cloud
    Thread Starter dguyen

    (@dguyen)

    Hello, I was just looking at the code and slowly breaking it down.

    <div id=”sidebar”>

      <li id=”rssfeeds”>Subscribe: “>Entries | “>Comments
      <?php /* Widgetized sidebar, if you have the plugin installed. */
      if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : ?>

    • <h2>David and Stacy</h2>
      <p>Uh, just another family blog for our friends and family because talking is just to difficulut…</p>
    • <?php if ( is_404() || is_category() || is_day() || is_month() ||
      is_year() || is_search() || is_paged() ) {
      ?>

    • <?php /* If this is a 404 page */ if (is_404()) { ?>
      <?php /* If this is a category archive */ } elseif (is_category()) { ?>
      <p>You are currently browsing the archives for the <?php single_cat_title(”); ?> category.</p>

      <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
      <p>You are currently browsing the /”><?php echo bloginfo(‘name’); ?> blog archives
      for the day <?php the_time(‘l, F jS, Y’); ?>.</p>

      <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
      <p>You are currently browsing the /”><?php echo bloginfo(‘name’); ?> blog archives
      for <?php the_time(‘F, Y’); ?>.</p>

      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
      <p>You are currently browsing the /”><?php echo bloginfo(‘name’); ?> blog archives
      for the year <?php the_time(‘Y’); ?>.</p>

      <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
      <p>You have searched the /”><?php echo bloginfo(‘name’); ?> blog archives
      for ‘<?php the_search_query(); ?>’. If you are unable to find anything in these search results, you can try one of these links.</p>

      <?php /* If this is a monthly archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
      <p>You are currently browsing the /”><?php echo bloginfo(‘name’); ?> blog archives.</p>

      <?php } ?>

    • <?php }?>

      <?php wp_list_categories(‘title_li=<h2>Categories</h2>’); ?>

    • <h2>Archives</h2>
      <ul class=”archives”>
      <?php wp_get_archives(‘type=monthly’); ?>

    <?php /* If this is the frontpage */ if ( is_home() || is_page() || is_single()) { ?>
    <?php wp_list_bookmarks(); ?>

    • <h2>Meta</h2>

    <?php } ?>

    <?php endif; ?>

    </div>

    Forum: Themes and Templates
    In reply to: Tag cloud
    Thread Starter dguyen

    (@dguyen)

    Hi Chandra,
    Thanks for the reply…I’m decently new to this but I don’t think that I’m “that” nub, but I’m sure you can’t be too sure with anyone on the web 🙂

    I have tried to add it in the Widgets menu, unfortunately its doesn’t allow me to click “Add” as if it is already chosen. My Dashboard says I have 6 widgets chosen (calendar, archives, blogroll, meta, recent posts, tag clouds). Unfortunately it only show 3 (recent posts, meta, archives) in my “sidebar”…and there isn’t another “sidebar” in the drop down menu…

    I hope I’ve explained it better…thank you for your time.

Viewing 13 replies - 16 through 28 (of 28 total)