Skip to content

Instantly share code, notes, and snippets.

erkiziltoprak

Block or report user

Report or block erkiziltoprak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View extra-item.php
function custom_nav_item($items) {
$ekstra_item = '<li class="menu-item"><a href="#" class="search-toggle"><span class="dashicons dashicons-search"></span></a></li> ';
$items .= $ekstra_item;
return $items;
}
add_filter( 'wp_nav_menu_menu-name_items', 'custom_nav_item' );
View functions.php
//* Add menu item to header-right menu
add_filter( 'wp_nav_menu_items', 'custom_nav_item', 10, 2 );
function custom_nav_item( $menu, $args ) {
//* make sure we are in the primary menu
if ( ! has_nav_menu != $args->theme_location ) {
return $menu;
}
//* see if a nav extra was already specified with Theme options
if ( genesis_get_option( 'nav_extras' ) ) {
return $menu;
View single.php
<?php
// This file handles single entries, but only exists for the sake of child theme forward compatibility.
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
add_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 12 );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
add_action( 'genesis_entry_header', 'genesis_post_info', 3 );
You can’t perform that action at this time.