Help with site
-
I have been working on my site and haven’t been able to get it to center on the page. Any suggestions?
http://www.bottomupanalysis.com
Thanks in advance!
-
Have you touched your CSS or theme files as normally TwentyEleven centers by default.
Replace the style.css file from fresh download
Replacing the style.css will undo any of your previous changes.
To center your page, go to line 325 in style.css and change it to the following:
#page { background: #fff; margin: 0 auto; }margin:0 auto means, margin of 0px on the top and bottom, and the auto centers it.
I have edited the CCS files to remove the white space and title text (current pic/title text is part of the image) above the picture. Maybe I should replace the style.css file and redo all my other changes…
harmck – I changed the code how you suggested and nothing happened. I noticed that sometimes the changes don’t happen instantly. Could this take more than an average amount of time for the changes appear on the site?
Sometimes the CSS is cached, so refresh it a few times. I tested the code myself, so it should work.
it showed up as centered for you? like this site? – http://twentyelevendemo.wordpress.com/
EDIT – It just changed! thank you!
One more thing…
Is it possible to remove the “proudly powered by WordPress INstall WordPress hosting” and its box at the bottom of the page?
An Image of Your Site with the line I suggested added
If you check the link above, this is what your site would look like if margin:0 auto is added after line 325. I checked your css and it’s not there.
CORRECTION: It is now 🙂
It should be somewhere in your footer.php file within your theme.
footer.php (line 24-27) if the footer.php is the original version and hasn’t been added to already.
<div id="site-generator"> <?php do_action( 'twentyeleven_credits' ); ?> <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a> </div>Good sir or madam. You are a genius.
Do you know how to remove the word “GALLERY” above the post title?
Remove “Posted on date”?
Remove “Posted in …. list of tags”?Just the first one, sir.
It looks to be: content-gallery.php. Please backup this file before editing it, as I don’t want to be responsible for you breaking your site.
Comment out, or delete the following lines:
Line: 17
<h3 class="entry-format"><?php _e( 'Gallery', 'twentyeleven' ); ?></h3>Line: 20-22
<div class="entry-meta"> <?php twentyeleven_posted_on(); ?> </div><!-- .entry-meta -->and lastly,
Line: 58-91
<footer class="entry-meta"> ... CODE TRUNCATED ... </footer><!-- #entry-meta -->Hope this is it. I’m guessing.
Indeed my site is broken. Uh-oh. Time for me to fix it. lol
I deleted the word “Gallery” from the first line you suggested. It didn’t work so I put it back in and now it seems to not work. That seems strange. Thoughts?
(it’s only the home page, all the other pages work.)
Did you download a backup of the file as I indicated?
Here is a copy of the original code
It indicates there is an error on Line 62, so you may have accidentally added a character there that is breaking that template.
I didn’t back up the code. Thank you for saving me from my foolishness once again.
Why would removing the word gallery from line 17 effect line 62?
So should I copy and paste the backed up code into “content-gallery.php”?
The topic ‘Help with site’ is closed to new replies.