WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Editing the author template (6 posts)

  1. ninjasmoker
    Member
    Posted 4 years ago #

    So I love this template and have had no problems with anything until now. When you click on the name of the person who posted it brings up a page with the nickname, bio, email address and all the posts by that author. I beleive this is called the author page. The only problem is that the formatting is all wrong. Is has the left sidebar, then under that is the acctual contant then under that is the right sidebar. I would just remove the sidebars but I can't an option that just lets me remove it from that page. In fact, I cannot find a way to edit the author page at all, so maybe I'm just missing something.

    Here is the author pages in question:

    http://www.theweedblog.com/author/johnnygreen/

    http://www.theweedblog.com/author/ninjasmoker/

    feel free to email me or whatever. I'm stumped. Thanks in advance for your help!

  2. MichaelH
    Member
    Posted 4 years ago #

    With the help of the Template Hierarchy article, determine what Template is displaying your author posts (could be author.php or index.php). Then edit that Template accordingly.

    If your theme's archive.php (or index.php) is displaying those posts you might want to copy that to author.php and edit that template to work.

    See Author Templates

  3. Sayontan Sinha
    Member
    Posted 4 years ago #

    I see you have changed the XHTML structure of the theme - I cannot see main-col or single-col, instead I see narrowcolumn. Why? Obviously that would break the styles.

    You probably replaced the theme's author.php with one of your own. You might try restoring the original author.php file of the theme - issues are much easier to work with, then.

  4. ninjasmoker
    Member
    Posted 4 years ago #

    Thank you for your quick response!

    So I replaced my author.php and authors.php(just to be safe) with the ones included in the zip file for your theme, per your request.

    To backtrack, what I did was when I first installed your theme, I went to the suffusion theme options->visual effects->sizes and margins and set the first option to custom sizes and margins. I then resized the sidebars and content area. It looks great on all of my oages except he author's page. I made this change more or less for visual appeal and for no other reason. However now most of my ads and widgets on the sidebars are set for that particular size. Do you think this is the reason?

    Thank you again for your help, I feel very fortunate to be talking to the developer directly!

  5. Sayontan Sinha
    Member
    Posted 4 years ago #

    Hmm... still seems to be a problem, so let me try another route. This is what the theme's author.php begins with:

    <?php
    /**
     * Displays a bio and the posts for a given author. The posts can be shown either
     * as excerpts or full contents
     *
     * @package Suffusion
     * @subpackage Templates
     */
    
    get_header();
    ?>
    
        <div id="main-col">
    <?php suffusion_before_begin_content(); ?>
          <div id="content">
    	<?php suffusion_after_begin_content(); ?>
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>

    If your author.php starts the same way, then something else is wrong. The reason I suspect so is because I see this in your page's source code:

    <div id="content" class="narrowcolumn">
    
    <!-- This sets the $curauth & $authid variables -->
    
    <div id="profilebox" style="min-height: px;">
    
    <!-- old school method
    <img src="http://theweedblog.com/wp-content/profile-pics/2.jpg" width=517 height=104 align=right  id="authorpic" />
    <h2>Johnny Green</h2>
    
    <p><b>E-Mail: </b> your-email<p><b>Yahoo IM: </b><p><b>AIM: </b><p><b>Jabber: </b><p><b>Web Page: </b><a href="http://www.theweedblog.com">http://www.theweedblog.com</a>
    <p><b>Registered Since: </b>2010-01-07 04:38:05<p><b>Profile: </b>you-have-some-personal-content-here
    -->
    
    <div id='profilepic_profile'><img src="http://theweedblog.com/wp-content/profile-pics/2.jpg" width=517 height=104 align=right  id="authorpic" /></div>
    </div>

    None of this comes from Suffusion (my class names are quite different). This leads me to think that the author.php file is still something from some place other than Suffusion. Otherwise have you got any plugin that does something special for the author pages?

  6. ninjasmoker
    Member
    Posted 4 years ago #

    Awesome! I read your last post and forgot about this plug in I installed. After I removed it everything went back to "normal." Thank you again for your help! I wouldn't have solved it without it!

Topic Closed

This topic has been closed to new replies.

About this Topic