How can I confirm I’m on the home page

If you are using the default home page, which in most cases is a list of most recent posts, is_home() should work. If you have set a static page to be your front page (in Settings >> Reading), is_front_page() should work. If you are not getting the results you expect using this: if (is_front_page()) { … Read more

Main timeline in a different path

Rename your home.php template file as front-page.php. In WordPress parlance, “home” is the Blog Posts Index. The front page of the site is Front Page. Likewise, the home.php template file corresponds to the Blog Posts Index and the front-page.php template file corresponds to the Site Front Page, and the is_home() conditional returns true when on … Read more

How can I make a portion of the home page user configurable?

If you’re looking for a native WordPress solution I’d recommend using the Theme Customize API. It can be a bit overwhelming at first, but it’s worth the investment in learning how to use it. Once you understand the concepts and have built your own Theme Options, you’ll find it solves a lot of problems for … Read more

static homepage no longer shows [closed]

You must have assigned a menu from wordpress dashboard and the pages there won’t list your static homepage. whichever is your homepage static template, at top include <?php /* Template Name: Home Page */ Now you will need to create a page in wordpress and select page template as Home. Don’t forget to assign that … Read more

How to get the true permalink of the static home page?

Edit: Wow. I mistyped a bunch the first time around. Hopefully nobody read that. All corrected now. /edit I went code spelunking… 🙂 Short version, the workaround would be this: <?php $front_page_id = get_option( ‘page_on_front’ ); $my_permalink = _get_page_link( $front_page_id ); ?> If you look into link-template.php in the WordPress core, you can kind of … Read more

How to make a video play for homepage?

My suggestion : Make a specific video splash template inside of your WordPress theme incorporating a link to visit the rest of your site. Put in your web directory a specific CSS file for full screen video support. Make a new empty page using the splash template and use this page as your homepage in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)