Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2376
    maveric
    Member

    I’m sure I’m not the only one who wants this, I want to be able to put links in my “site description.” I’ve edited my theme to allow me to do this, but every time I update I have to re-edit it. I was wondering if you would consider making it possible by default.

     

    My edit is replacing the “site description” line of headers.php with this: <h2 id=”site-description”><?php echo htmlspecialchars_decode(get_bloginfo( ‘description’ ), ENT_QUOTES); ?></h2>

     

     

    #2378
    ronmerk
    Participant

    Why not create a child theme with your header.php in it. Of course if there are any updates to the theme that impact header.php, then you wouldn’t get to apply them, but at least you wouldn’t loose your changes to your header.php file every time. There also might be a way with CSS, but I’ll let Sakin jump on on that.

    #2380
    maveric
    Member

    I hadn’t considered the child theme idea. I’m still new to WP and do lots of code writing, so my first thought was straight to “make an edit.”

    I may do that, but I don’t see a downside to letting the admin do it by default. Because it is an admin-only function, it seems that allowing HTML code should be allowed.

    I don’t see CSS as being an option because the code is output in html-encode form. So < is turned into &lt; and so on. Maybe with some fancy javascript, but that seems silly to me when the other solution is so simple.

    #2384
    ronmerk
    Participant

    Hi Maveric:

    I’ve been using WP for many years now, although I don’t consider myself a “coder” by any means.

    I can say that I’ve never seen a theme yet that has the ability built into the theme to put a link into the theme description. (there’s probably one out there, but I can’t think of it)

    Most theme builders adhere to the structure suggested by WordPress.org. Possibly why this doesn’t commonly exist as a feature.

    Wordpress addresses these customization opportunities by allowing child themes. Then you can basically code what ever you want. Your child theme will always over rule the parent theme. They’re very easy to implement. Just do a search on Google or WordPress.org.

    Ron

    #2387
    maveric
    Member

    Thanks for the heads up Ron,

     

    That was going to be my next question as to why this was a common issue I had among themes. I’ll look into child themes so I don’t have to re-edit every time I update.

     

    Thanks for your time,

    -Wes

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Suggestion for site description code.’ is closed to new replies.