wp_title() empty on a static front page
wp_title() is for the html title tags in your websites head section. It’s not for outputting a title. Use the_title(), or get_the_title(),
wp_title() is for the html title tags in your websites head section. It’s not for outputting a title. Use the_title(), or get_the_title(),
EDIT From your comments, front-page.php is only used when a page is set as a static front page. Normal home pages, ie, when Front page displays is set to Your latest posts, index.php is used. All archive pages and the front page uses paged and not page, so you would need to set get_query_var( ‘page’ … Read more
This solution needs to be revised for that pagination functions are in functions.php. I am using Reverie master theme (which uses foundation framework), that theme uses pagination function which is in functions.php if( ! function_exists( ‘reverie_pagination’ ) ) { function reverie_pagination() { global $wp_query; $big = 999999999; // This needs to be an unlikely integer … Read more
You can check in your callback function if you are an the front page. Sample code for the theme’s functions.php: add_action( ‘after_setup_theme’, ‘wpse_67480_theme_setup’ ); function wpse_67480_theme_setup() { $bg_options = array ( ‘wp-head-callback’ => ‘wpse_67480_background_frontend’, ‘default-color’ => ‘f0f0f0’, ‘default-image’ => ”, ); add_theme_support( ‘custom-background’, $bg_options ); add_theme_support( ‘custom-header’, array ( ‘width’ => 960, ‘height’ => 200, … Read more
Here is a slight variation of my other answer. First we register two new widget areas, sidebars in WordPress-speak. add_action( ‘widgets_init’, ‘wpse_84250_register_ad_widgets’ ); function wpse_84250_register_ad_widgets() { // used on the first page of main loop only register_sidebar( array ( ‘name’ => ‘Ad Widget 1’, ‘id’ => ‘ad_widget_1’, ‘before_widget’ => ‘<div class=”frontpage-ads”>’, ‘after_widget’ => ‘</div>’ ) … Read more
An Active Plugin To make an active plugin, use the following resources: WordPress Codex: Writing a Plugin WordPress Essentials: How To Create A WordPress Plugin by Daniel Pataki From the following StackExchange thread, try to understand what are the Hooks and what are things acting behind a plugin: How to edit a wordpress plugin without … Read more
It appears that you don’t have the mod_rewrite module enabled in apache. This explains why you can access the dashboard found at wp-admin/index.php, but not the main index.php. Your .htaccess is depending on the rewrite module to do its work, which isn’t active. To enable it in your http.conf file you need to find the … Read more
I had time to look at your issue and the options-reading.php page which is the template used to render the reading settings page in backend. There are unfortunately no filters to filter or add custom posts as sticky posts in a selectable dropdown. There are two hidden filters though which we can use, they are … Read more
Finally solved the issue. Index.html file in /public_html/ directory was conflicting with index.php file. This awesome article solved the issue. askwpgirl.com/moving-wordpress-from-subdirectory-to-root-faq/
How to load a custom stylesheet for your Front Page Set up front-page.php (which you’ve done already). Create a stylesheet for your front page (you can copy style.css, but more likely, you’ll just want to override a few things). Let’s call it front-page-style.css. View the HTML source of one of your pages, and find the … Read more