This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Page Top Links

  • Creator
    Topic
  • #4217
    rbassett
    Member

    My company focuses on Accessibility, so I want this to be as accessible as possible. Part of that is using “Jump Links” and “Site Map” link along the top of a webpage. Example of what I mean: http://tinypic.com/r/2dkde8w/6

    Is there a way I can place links along the very top of a page using Akita?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #4233
    Jason Bobich
    Keymaster

    Hello,

    I apologize, but there is no feature in the theme for this. This would be a customization you’d ned to make.

    The theme has a great hook system that will give you a lot of flexibility in what you can do from your Child theme’s functions.php. The “themeblvd_header_top” hook would be a good one to use for this location.

    http://dev.themeblvd.com/tutorial/actions/

    http://dev.themeblvd.com/tutorial/primary-framework-action-hooks/

    #6493
    rbassett
    Member

    Hi Jason,

    I tried to make use of the “themeblvd_header_top” hook. I tried to mimic what was in place for the “themeblvd_header_above” functionality. I am just doing an “Hello World” effort to get it to work. Here is the code I am setting up in the Child them functions.php file:

    function themeblvd_header_top() {		
    echo '<div class="header-top">';
    	echo 	'<span>Hello World</span>';
    	echo '</div><!-- .top(end) -->';
    }

    Nothing too hairy.

    But, my webpages do not parse correctly – I get a blank page. When I remove just this code above from the function file, all works as desired. This snippet of code seems to be the trigger (or the silencer, however you want to look at it!).

    What am I doing wrong? Do you have a real simple example of using a hook that has no default in your theme?

    Thanks,
    Randy

    #6494
    Jason Bobich
    Keymaster

    You can’t name your function “themeblvd_header_top” because this function is already used by the theme to display the action hook. These action hook functions are not pluggable functions because you’d never need to “override” them. You need to create your own function that has a unique name, and then hook it to the “themeblvd_header_top” action hook with WordPress’s standard add_action function.

    Take a closer look at this article: http://dev.themeblvd.com/tutorial/actions/

    What you’re doing should look more like this:

    function my_header_top() {		
    	echo '<div class="header-top">';
    	echo  '<span>Hello World</span>';
    	echo '</div><!-- .top(end) -->';
    }
    add_action( 'themeblvd_header_top', 'my_header_top' );

    And also, there’s no reason to put any of this before the framework is included in your Child theme’s functions.php. In this case you’d technically be okay, but it’s better if this goes after the framework is included.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The forum ‘Akita Responsive WordPress Theme’ is closed to new topics and replies.