The MU forums have moved to WordPress.org

Inserting some code to all themes (2 posts)

  1. umair
    Member
    Posted 17 years ago #

    guys, is there a way to insert some code (to display some text), in all the themes quickly. i mean, there must be no need to manually edit all the themes. For example, some code to display my name in the header of blog ???

  2. nexia
    Member
    Posted 17 years ago #

    there is hooks across the system, that's what you have to learn if you want to automate some process...

    doing something like

    add_action('wp_head', your_action_name());

    will create the process to add the content of your action name in the head of the templates (wp_head is called to fill the header of your templates!)

About this Topic