Home › Forums › Support › how to position a custom hook where i want it? › Reply To: how to position a custom hook where i want it?
May 15, 2015 at 4:37 pm
#108191
Tom
Lead Developer
Lead Developer
Ignore what I said above – not sure what I was thinking.
A much better way of doing this is explained here: http://generatepress.com/forums/topic/formatting-text-in-header/#post-108188
As of right now, there’s no way to add anything else in the mobile menu.
However, I just made an adjustment so that you can insert something into the mobile menu in version 1.2.9.7.
You could do something like this:
add_action( 'generate_inside_mobile_menu', 'generate_add_mobile_menu_content' );
function generate_add_mobile_menu_content()
{
echo '<span class="mobile-content"><a href="tel:123-4567">Call me</a></span>';
}
Then you could float that to the left:
.mobile-content {
float: left;
}
Again, this won’t work until GP 1.2.9.7.