Viewing 15 replies - 1 through 15 (of 25 total)
  • 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.

    Thread Starter bobsmith1982

    (@bobsmith1982)

    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.

    Thread Starter bobsmith1982

    (@bobsmith1982)

    it showed up as centered for you? like this site? – https://twentyelevendemo.wordpress.com/

    Thread Starter bobsmith1982

    (@bobsmith1982)

    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( __( 'https://www.ads-software.com/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
    </div>
    Thread Starter bobsmith1982

    (@bobsmith1982)

    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.

    Thread Starter bobsmith1982

    (@bobsmith1982)

    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.

    Thread Starter bobsmith1982

    (@bobsmith1982)

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

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Help with site’ is closed to new replies.