Yes. you can do that.
function my_custom_footer() {
?>
<div class="site-footer-logo">
<img src="https://wordpress.stackexchange.com/questions/179519/<?=get_stylesheet_directory_uri();?>/images/my-logo-small.png" alt="My Logo Small" />
</div>
<?php do_action('my_own_hook'); ?>
<p>Copyright © <?=date('Y');?>, my-url.com.</p>
<?php
}
add_action( 'my_own_hook', 'genesis_do_subnav' );
function genesis_do_subnav(){
wp_nav_menu( array( 'theme_location' => 'secondary-menu' ) );
}
You also can directly add:
</div>
<?php wp_nav_menu( array( 'theme_location' => 'secondary-menu' ) ); ?>
<p>
Note that secondary-menu
here should be registered.
Related Posts:
- When calling wp_title(), do you have to create some kind of “title.php” file?
- Set template based on query in URL
- Which has more impact on site performance? Template overrides or hooks
- Is there an action hook that fires just before a template is loaded?
- if page is parent page redirect to first child with hook / polylang
- How do I override the search template in a plugin?
- How can I add text to a specific ‘Edit Page’?
- Can i exclude certain page templates for a specific role?
- How to add description over forum list on bbpress root page
- What filter or action hook to use in order to load some code before the template begins printing in BuddyPress? [closed]
- Retrieving post ID from current page
- Given a page ID, how to display entire page (header/content/footer/sidebars) from a plugin hook
- How can i change email template for new user
- Enable page templates. How?
- Is it possible to override the result of get_template_part()?
- Prevent comments_template() to load comments.php
- Page editor missing Templates drop down
- How to find the posts page (home page) programatically
- Custom templates folder
- How to Rename a Template File?
- get page templates
- Load different template file when condition met?
- How to assign a class to a page with a custom template?
- Proper Javascript Implementation
- Guest author’s post not display in author template
- How to apply a custom template for posts by default?
- Is there a way to check which template file is being loaded, if it is not a page template file?
- When a link doesn’t exist, how to tell WordPress what to do? (404 Error Page)
- How to remove wp_link_pages() from template
- How can I get WP to use templates in lower-level subfolder?
- how to make a home page for wordpress custom theme
- Generate Catalog Of Posts Based On Template
- Extending body classes in front- and backend
- How do I find the directory of a page template?
- New custom nev not working [closed]
- Is there a way to set different post templates for parent posts and child posts in the same post type?
- Why write markup for index.php?
- What is the filter or hook to add admin controls to posts on the front end?
- Include Lumen/Laravel app in custom WordPress template
- Having trouble with Template hierarchy. I Need to create a set of pages that drill down from states to specific locations
- How can I hardcode template selection?
- Changing layout programmatically
- How to identify which template WordPress’s default search-form retrieves in my theme
- How to use same page template if post status other than ‘publish’?
- How to properly Remove certain CSS / JS files from template
- Template filter for custom taxonomy terms
- What is the most efficient way to create multiple versions of the same template?
- Is there any way to write custom HTML is some .php file and then call it wherever necessary?
- How to redirect my custom template page to content-none.php if no posts found?
- Get URL of current post but not the page number
- Is template name always same as directory name?
- Single Post Breadcrumb not linking back to Custom Post Type Index?
- Form post to WordPress page = wrong template
- get_month_link uses what wordpress template?
- If Posted After Date
- No three-columns template in TwentyEleven?
- Update template without undoing all my edits?
- Can’t split the_title() by white space
- Not so common HTML transition to wordpress issue
- Differentiation between index.php and page.php
- Undefined get_header function
- Single-page.php template file name not shown
- WordPress custom template not showing in the list of available templates
- How to create new template page and template-parts in wordpress theme [closed]
- how to properly include or get file contents in a wordpress theme
- How to display custom post type?
- Pagination issue with tag.php
- How are the HTML classes generated?
- Page Template with Sidebar Naming Convention?
- Adding text to the footer of each post based on tags or categories
- Blog page won’t show Blog template
- How can I abstract code out of a template by using functions.php
- Make Permalink go to specific template
- WordPress function.php on ZendFramework CMS
- Site Title appearing twice on live site
- Give user option to select full post index page or excerpted index?
- how to change already posted blog to custom template wordpress?
- Editing my loop-page.php causes posts to show on all pages
- WordPress change title with custom dynamic
- template with multiple post loops for multiple widgets [duplicate]
- Random home page at each refresh between array of page IDs
- Do not trigger page 404 on custom template
- Print different parts of content in template
- How can I pass a variable from a template to header.php of a theme
- How can i conditionally load taxonomy-{taxonomy}.php template php files through functions.php
- Page Template Selector Error
- WordPress site not loading styles on desktop?
- Change Page Template Based on URL Rewrite in WordPress
- ACF – Attach JS file depending on ACF field
- I want to display all related posts for a selected tag in WordPress
- WordPress Child Theme Template auth_redirect wrapper
- why get_header doesn’t work twice in a test
- Show a custom template, no matter the page being viewed, if the user is not logged in
- printf, translation and the_author_posts_link()
- Is there a list of all possible WordPress URL’s?
- Tag Posts showing in wrong places
- front page won’t change templates
- Including 2 Negative Is_Template Conditionals in header.php [closed]
- Add custom card template to masonry layout using Essential Grid [closed]
- Where is the general html template file?