Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
A div between "subsidiary" and "siteinfo" « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

A div between "subsidiary" and "siteinfo"

(6 posts)
  • Started 3 years ago by Minimalist
  • Latest reply from sowingseeds
  • This topic is resolved

Tags:

  1. Minimalist
    Member

    Can someone please help me insert a new div between the "subsidiary" and "siteinfo" divs inside the footer? I need to display additional links across the footer. Thank you for your time!

    Posted 3 years ago #
  2. sowingseeds
    Member

    I reckon you could consider putting a division after subsidiary (has priority 10) and before siteinfo (priority 20) through using thematic_footer hook and adding priorities between 11 and 19:

    Try something like:

    function extra_footer_open(){
    echo '<div class="extra_footer">';
    }
    add_action('thematic_footer','extra_footer_open',11);
    
    function extra_footer_close(){
    echo '</div>';
    }
    add_action('thematic_footer','extra_footer_close',19);
    Posted 3 years ago #
  3. Minimalist
    Member

    Thanks for answering, sowingseeds!

    Pardon my ignorance... how/where do I insert my HTML now? I am getting a syntax error when trying to insert it in my functions file.

    Posted 3 years ago #

  4. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    helgatheviking

    Moderator

    there's no need for 2 functions, but put everything on a priority between the 2.... sowingseeds says it is 10 and 20, so 15 should work fine.

    function kia_footer_div(){ ?>
      <div>
         <a href="#">A link to bacon</a>
      </div>
    <?php
    }
    add_action('thematic_footer','kia_footer_div',15);

    you could also theoretically add a wp_nav_menu there instead of hard-coding. see my menu thread for how to register and add a secondary menu

    Posted 3 years ago #
  5. Minimalist
    Member

    Thank you so much, helgatheviking!

    Hopefully, I will find some easy to follow tutorials some day and learn how to take advantage of filters and functions. But right now I am more comfortable with hard-coading. I know it is sad.

    Posted 3 years ago #
  6. sowingseeds
    Member

    Sorry about the double function!!! Hope the syntax error is sorted.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183