• Resolved michaelfterry

    (@michaelfterry)


    Here’s my website that I’m building: <https://ugawaterpolo.com/&gt;

    I’m trying to do 3 things:

    1) Get rid of the Avatar logo, AND move the Post title over to the left (so it’s not off center w/o the Avatar logo)
    2) Get rid of the author name, date, and time on Pages (not the individual posts)
    3) Make my new posts (which appear on the page “Recent News”) appear in the widget on the right sidebar. I currently have a static frontpage.

    Thanks for the help–This is the first time I’ve used WordPress to build a site that’s not only being used for a personal blog.

    Michael

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi

    1) In your theme file index.php, this line is displaying the avatar
    <div class="authorAvatar"><?php echo get_avatar( get_the_author_email(), '40' ); ?></div>

    2) Your theme is using index.php for both posts and pages. Since you want a different layout for pages than posts, I suggest you create a page template and modify that. Make a copy of index.php and save it to your WP theme folder as page.php WordPress will know to use that template for pages.

    This code displays the author and date/time
    <span><?php _e('Posted on'); ?> <?php the_time('F jS, Y') ?> <?php _e('by'); ?> <?php the_author() ?></span>
    so remove it from the new page.php file you just created.

    3) The sidebar coding for Recent Posts is coded into the theme file sidebar2.php If you have any widgets installed on sidebar 2 they override the built on coding. The sidebar code is set up to display up to ten posts. It skips the first one. You can also use the Recent Posts widget by dragging it onto sidebar 2. Are you having a problem using it? Wasn’t clear in your question.

    Thread Starter michaelfterry

    (@michaelfterry)

    Thanks for the help:

    For #2, I get the following error:

    Fatal error: Call to undefined function get_header() in /home/ugawater/public_html/index.php on line 1

    Also, for #1, is there anyway to move the Text header for the “post title” to the right (where the Avatar was).

    Thanks,

    Michael

    Thread Starter michaelfterry

    (@michaelfterry)

    I had some trouble when coping index.php…Could I have accidentally copied it to the wrong place without realizing it?

    Thread Starter michaelfterry

    (@michaelfterry)

    One more question (sorry!), What is the difference between my newly created page.php and single.php?

    Michael

    It sounds like you copied the changes you made to the theme index.php file into the root WP installation folder instead of the theme folder. That would overwrite the very necessary main WP index.php file.

    If you did that, download a fresh copy of WP and copy the root folder’s index.php file back where it belongs in the WP root folder on your server. Then copy the changes you made to the theme’s index.php file into the theme folder.

    page.php displays content of WP static pages. single.php is the template for display of single posts, including the comments display and entry below the post.

    Thread Starter michaelfterry

    (@michaelfterry)

    Thanks a lot! I got it figured out.

    Do you know if there is anyway to move the Text header for the “post title” to the right (where the Avatar was).

    Michael

    In your stylesheet line 68

    .mainInfoBlock h1 {
    color:#191919;
    display:block;
    font-family:Georgia,"Times New Roman",Times,serif;
    font-size:18px;
    font-weight:normal;
    line-height:1.3em;
    margin:0 0 5px 65px;
    padding:0;
    }

    In the line that says margin, change 65px to 0px and see what that looks like. If you want it further to the right add more margin back in – say 10px and experiment until its positioned where you want it

    Thread Starter michaelfterry

    (@michaelfterry)

    Is there some way to make the static page post heading font size different from the regular post heading font size?

    Michael

    Mostly likely your static pages are handled by the page.php template. The post headings are H1 tags. Add a class to the h1 on the page.php template, like

    <h1 class="static">headline here</h1> – the “headline here” might be some PHP code

    Then in your style.css file add
    .mainInfoBlock h1.static a { font-size: 22px; } or whatever font size you want

    Thread Starter michaelfterry

    (@michaelfterry)

    The date/author/time information has disappeared on “posts” when they’re clicked. What do I need to do to get the date/time/author to reappear?

    Michael

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘A few basic edits…I need some help!’ is closed to new replies.