ThemeShaper Forums » Thematic

[closed]

Add content to thematic_abovemainasides

(4 posts)
  • Started 3 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.

    -M

    Posted 3 years ago #
  2. oakview
    Member

    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 3 years ago #
  3. Yep. That did it. Thanks!

    -M

    Posted 3 years ago #
  4. oakview
    Member

    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 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.