Forums

Add Span Tag to H1>H6 Tags in My Theme (PHP Help) (5 posts)

  1. ravenousravendesign
    Member
    Posted 4 months ago #

    I'm looking to add a span tag to the h3 tags in my sidebars in my headers for the purpose of customization. I am trying to achieve this awesome css3 effect

    I can say what I want, I just can't figure out the code.

    function add_span(){
    for each <h3></h3> within a sidebar
    add <span></span> before </h3>
    end
    }

    Here is the website I'm trying to add this to
    http://firecu.net/wordpress/loans/loan-calculators/

    Premium Theme: Swix

    Thanks!

  2. alchymyth
    The Sweeper
    Posted 4 months ago #

    the h3 in a sidebar are usually defined in functions.php of your theme, in the 'register_sidebar() function:

    http://codex.wordpress.org/Function_Reference/register_sidebar

  3. ravenousravendesign
    Member
    Posted 4 months ago #

    I am aware of that alchymyth. Thank You. But since I do not want to disrupt the parent theme, I need to write to my child themes functions.php.

    This does not contain any php code. It is for child theme customization's. And a php customization is what I am trying to achieve. I just can't seem to write this particular code out.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

  5. alchymyth
    The Sweeper
    Posted 4 months ago #

    I am aware of that alchymyth. Thank You. But since I do not want to disrupt the parent theme, I need to write to my child themes functions.php.

    then say so in your question. with an unprecise question and without explaining your situation properly, you will get un-precise answers. :-(

Reply

You must log in to post.

About this Topic