ThemeShaper Forums » Thematic


Add content to thematic_abovemainasides

(4 posts)
  • Started 11 years ago by Wolfy
  • Latest reply from oakview
  • This topic is resolved
  1. I am building my first WP-Thematic theme. I've never dealt with hooks before. I don't understand how I add content to this hook as i understand, it will display content above the sidebar. The hook is called in my sidebar.php file for thematic.

    How and where do i add content to this area?

    What I want to do is have facebook / twitter logo links above the sidebar.

    I've searched this forum and looked over the wiki. Thanks in advance for the help.


    Posted 11 years ago #
  2. oakview

    You need to add something like this to your functions.php file.

    // Puts content above the asides
    function my_above_asides() { ?>
    put the code to display your content here
    <?php }

    add_action('thematic_abovemainasides', 'my_above_asides');</code

    Posted 11 years ago #
  3. Yep. That did it. Thanks!


    Posted 11 years ago #
  4. oakview

    Sorry about the </code at the end of the post - shouldn't be there.

    guess I must not have checked closely enough before submitting it and forgot to close the brackets.

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.