Featured Post List Code Genesis Child Part 6 - Genesis Framework
Through 5 tutorials you have a blog using Genesis Child Themes created by yourself. It's amazing, isn't it, news blog is light, optimizes code, loads extremely fast. Want your website to be more beautiful and beautiful like news sites? This article is for you. Show featured posts Featured Post you want with the layouts you create.
Featured Posts
Featured Post List On Home
In this article we will guide and show you the code to display the featured article with a grid layout. You need skills css to create as many layouts as you want. To start creating your own functionality, go to your Child themes Folder and create the Floder “ lib "Is horizontal to the file Function.php. In the Folder " lib "Create file named featured-posts.php That's it for the preparation stage, next follow the steps below.
Function.php file
Copy & pate the code below into the file function.php Let the child theme call featured-posts.php file
// Add Featured Posts List. include_once( get_stylesheet_directory() . '/lib/featured-posts.php' );
Featured-posts.php file
Copy & pate the code below into the file featured-posts.php to create the Featured Featured Post List and include it in your blog's homepage.
'' ); $ol_flash = ''; /* Functions */ function posts_options_page() { global $ol_flash, $posts_settings, $_POST, $wp_rewrite; if (isset($_POST('posts_id'))) { $posts_settings('posts_id') = $_POST('posts_id'); update_option('posts_settings',$posts_settings); $ol_flash = __('Your Featured List has been saved.', 'genesis-child'); } if ($ol_flash != '') echo '
' . $ol_flash . '
'; ?>
Style.css file
In this article we give you css sample, this css is not responsive. You need css skills to create responsive and create many other layouts. Copy & pate the code below into file style.css
After the steps are completed you can install the articles shown in Option Featured Post List. Note You need to get 4 ID of 4 posts with this sample layout.
Featured Posts Option
Epilogue
That's it then, you have a beautiful news blog, no plugins, no fussy, optimal code. If you take a look at the other tutorials on this website, you'll find many other tutorials you can make for your blog.
I hope you find this guide helpful. If so, consider sharing it with your audience!
->
Post a Comment
Site is Blocked
Sorry! This site is not available in your country.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.