• Skip to primary navigation
  • Skip to content
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account
You are here: Home / Archives for Snippets

Snippets

Enqueue fonticons in Genesis

Last Updated on September 13, 2019 Favorited: 1 times

1. Enqueue Ionicons in Genesis Add this at the end of your child-theme/functions.php <?php //* Do NOT include the opening php tag // Enqueue Ionicons. add_action( ... Continue Reading »

Categories: Free Content, Snippets Tags: fonticons

Current menu item in screen reader in WordPress

Last Updated on September 15, 2019 Favorited: 0 times

Use one of the following snippet in child-theme/functions.php add_filter( 'nav_menu_link_attributes', 'dy_menu_atts_filter', 10, 3 ); function dy_menu_atts_filter( $atts, $item, ... Continue Reading »

Categories: Free Content, Snippets

Modify the Site Header URL in Genesis

Last Updated on September 15, 2019 Favorited: 0 times

Change site title url in Genesis /** * Logo URL * */ function dy_site_title_url( $title, $inside, $wrap ) { $inside = sprintf( '<a href="%s" ... Continue Reading »

Categories: Free Content, Snippets

SVG Support in WordPress

Last Updated on September 13, 2019 Favorited: 0 times

in child-theme/functions.php function cc_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'cc_mime_types');   or use ... Continue Reading »

Categories: Free Content, Snippets

Reposition Hero Section Post title on Single Posts in Corporate Pro

Last Updated on September 13, 2019 Favorited: 0 times

//move post title add_action('genesis_after_header', 'reposition_post_title', 9); function reposition_post_title() { if (!is_single() ) { return; } ... Continue Reading »

Categories: Free Content, Snippets

is_front_page() v/s is_home()

Last Updated on September 14, 2019 Favorited: 0 times

The Visual Conditional tags, The different Settings > Reading here. When shows. 1. Your latest posts >> is_front_page() and is_home() both will work. URL ... Continue Reading »

Categories: Free Content, Snippets

  • Page 1
  • Page 2
  • Page 3
  • …
  • Page 7
  • Next Page »

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service