/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*------------- WIDGETS --------------*/ 'name' => 'Sidebar Widgets', 'id' => 'sidebar-widgets', 'description' => 'These are widgets for the sidebar.', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h2>', 'after_title' => '</h2>' )); } /*------------- IMAGES --------------*/ //Prevent post images from being displayed on homepage add_filter('the_content','wpi_image_content_filter',11); function wpi_image_content_filter($content){ if (is_home() || is_front_page()){ } return $content; }