Forums

[resolved] How to "uncomment" the About The Author text? (11 posts)

  1. Chouette
    Member
    Posted 3 weeks ago #

    I've replaced the text in sidepar.php that says "A little something about you, the author. Nothing lengthy, just an overview" with a sentence of my own, but I don't understand how to "uncomment" it so that it appears in the sidebar. Can someone help please?

  2. MichaelH
    moderator
    Posted 3 weeks ago #

    A PHP comment can begin with /* and end with */ so you would need to delete both.

    A PHP comment on a given line can be proceeded with // so delete that to make the code 'execute'.

    An html comment can begin with <!-- and end with --> so you would need to delete both those constructs to make the code 'execute'.

  3. Chouette
    Member
    Posted 3 weeks ago #

    Thank you. I see the html comment, which I've deleted, but not the php comments. Still no sign of text in sidebar though.
    Perhaps I need a plugin to make this work?

  4. MichaelH
    moderator
    Posted 3 weeks ago #

    With the help of the Template Hierarchy article, determine what Template is displaying that information, then paste the content of that template in a pastebin and report the link back here.

  5. Chouette
    Member
    Posted 3 weeks ago #

    Sorry, but I'm out of my depth here.

    I've read the article but can find no mention of sidebar.php, which is where my text is.

    I'm using WordPress 2.8.4 and the default theme, which I've fiddled with a bit:

    http://www.aspiringvegan.com

  6. MichaelH
    moderator
    Posted 3 weeks ago #

    Okay in wp-content/themes/default/sidebar.php there is this:

    <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
    			<li><h2>Author</h2>
    			<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
    			</li>
    			-->

    You would change that to something like this:

    <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.-->
    			<li><h2>Author</h2>
    			<p>This is the information about Chouette.  Born, lived, and blogged in the 21st century</p>
    			</li>
  7. Chouette
    Member
    Posted 3 weeks ago #

    Thank you for your patience.

    Yes, that's what I did first, then took off the <!-- at the start and end as you suggested.

    Do I need to enable something somewhere to get this to appear in the sidebar?

  8. MichaelH
    moderator
    Posted 3 weeks ago #

    Oh, if you are using Widgets you will need to put your About stuff in a text widget.

  9. Chouette
    Member
    Posted 3 weeks ago #

    I did do that before going into the code (seemed the simplest way), but then both title and text appeared in the sidebar. What I want is just a clickable About that takes you to the text. You've got me thinking of possible workarounds though...

  10. MichaelH
    moderator
    Posted 3 weeks ago #

    The just create an About page (WordPress installs one by default), and then use the Pages Widget to provide the link.

  11. Chouette
    Member
    Posted 3 weeks ago #

    Sounds good. Thank you again.

Reply

You must log in to post.

About this Topic