StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 06-20-2009, 05:39 PM
Marcoayuso Marcoayuso is offline
Registered User
 
Join Date: May 2009
Posts: 5
Default Sidebar gets under de content when adding code

Hi!

I added to page_blog.php the code to make the 'Read More' tag work...

<?php global $more; $more = 0; ?>

But when I do, the sidebar appears under the content. If I remove it, it goes back to where it should be.

Any idea why this is happening???

My website is http://www.elpoderdelaprincesa.com/blog

Thanks!
Marco
  #2  
Old 06-21-2009, 03:29 AM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Default Re: Sidebar gets under de content when adding code

Quote:
Originally Posted by Marcoayuso
But when I do, the sidebar appears under the content. If I remove it, it goes back to where it should be.
That's not the only thing happening, right?

This code forces Read More to work on the home page. The things on the page that are being added or being removed are causing the problem. The best way to determine which part is causing problems is to compare the two results of running with and without this code. Compare the source of each result to each other. That's where the problem is.

Do you know how to view the source of a web page?

Did you compare the sources of each resulting web page?
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Sidebar Widget Causes Sidebar Content Loss Terry General Discussion 11 05-25-2009 01:05 PM
Adding a 3rd Sidebar in Code Blue lokiguy General Discussion 2 01-02-2009 12:34 PM
Need Code Help On Sidebar - Adding Graphic w/ Link jdebord General Discussion 6 12-28-2008 09:27 PM


All times are GMT -5. The time now is 06:33 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.