ThemeShaper Forums » Thematic

[closed]

Adding a div before #branding

(4 posts)
  • Started 3 years ago by joperron
  • Latest reply from helgatheviking
  • This topic is resolved
  1. So... here goes

    <?php
    
    function move_brandingopen(){
    remove_action('thematic_header','thematic_brandingopen',1);
    }
    add_action('init','move_brandingopen');
    
    add_action('thematic_header','thematic_brandingopen',2)
    
    function top_box() {?> <div id="topbox"></div> <?php}
    
    add_action('thematic_header','top_box',1)
    
    ?>

    Why no workie?

    My PHP skills aren't that great

    Posted 3 years ago #
  2. you were missing some ; after the add_action statements

    function move_brandingopen(){
    remove_action('thematic_header','thematic_brandingopen',1);
    }
    add_action('init','move_brandingopen');
    add_action('thematic_header','thematic_brandingopen',2);
    
    function top_box() { ?>
    	<div id="topbox">Bacon</div>
    <?php }
    add_action('thematic_header','top_box',1);
    Posted 3 years ago #
  3. Thanks, bacon rules!

    Posted 3 years ago #
  4. indeed it does! i just needed it to show something in the div when testing. don't forget to mark the thread as resolved.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.