Questions tagged [frontpage]

The home page of a site. Could either contain the blog index, or a static page.

Filter by
Sorted by
Tagged with
0
votes
1answer
542 views

Reverse ordered pagination on home page

Use on the blog reverse pagination. The question arose. How to make a home page is not the first? Need to break the link Home = First page and make a connection Home = Last page. Home should be the ...
0
votes
0answers
11 views

place to add the_post_thumbnail for homepage for news-pro child theme

Disclaimer: new to php & wordpress Been puzzled for a few weeks now how news-pro child theme creates homepage so i'm just hoping to get some pointers here because I can't seem to find the correct ...
0
votes
1answer
538 views

New WP_Query not isolating custom post types on front-page template

This is the code for my front-page.php template <?php add_filter( 'genesis_markup_site-inner_output', '__return_false' ); add_filter( 'genesis_markup_content_output', '__return_false' ); ...
0
votes
1answer
751 views

Static page for desktop or mobile

Can you automatically change to a static page if access to the site is via mobile device? Currently my homepage is static and use components that do not work properly with mobile devices but are are ...
0
votes
1answer
4k views

Can't see widget areas in my customizer

I've registered 7 Sidebars in my template, I can see them correctly in the Apparence > Widget panel and my front-end, but I can't see them in the Theme Customize, when I click on my Widget section I ...
0
votes
0answers
11 views

cUrl result: Tell if the result is a single post or a blog roll of latest posts?

If I cUrl a remote WordPress site, and I'm looking at the HTML response... What is the canonical method to determine if I'm looking at a blog roll, or a single post? My guess: I don't think there is ...
0
votes
1answer
25 views

Wordpress website working fine on localhost but not displaying front pages on webhost

The website works perfect on my localhost. I used duplicator plugin to upload it on my web-host. Database connections are established since mywebsite.com/wp-admin works perfect. I can login the ...
-1
votes
1answer
1k views

front page won't change templates

I have tried changing the template of the attached page and changing which page is attached as the home page, no effect for either. The front page remains the same. I am at my wits end with this one!!
0
votes
2answers
1k views

Home page Pagination - Other pages do not redirect to home page template

I know similar questions have been asked, but none of them seem to answer the question. I've set up a post-loop widget that I put on the home page. It has pagination, but whenever going to any page ...
1
vote
0answers
49 views

style.css doesn't load on the home page when front-page.php activated (using stock theme)

I promise you I'm not wasting your time with this problem. I have searched through StackExchange for almost 4 hours in the last few days, and even though there are questions with similar titles, I ...
0
votes
1answer
3k views

How to call posts under a specific category on static front page?

I want to show posts according to categories on the static front page (home page) only. Any suggestions. can I show the contents from function.php or which file is responsible for the static front ...
0
votes
3answers
81 views

Make WooCommerce product categories only show images on homepage

I am trying to set up my site so that my WooCommerce product categories only show images on my home page. Currently I have this: <?php function fp_categories() { if( is_front_page() ) { ...
0
votes
0answers
27 views

How to make the videos in loop and auto play

I am trying to make all front-page videos in loop and autoplay I am using divi theme, I know it will be done by adding loop and autoplay tags in the video tag but how to do it where is that module ...
0
votes
1answer
39 views

No posts on front page

I've already looked for the way to solve my problem but never found any. The problem: No posts show on my frontpage. I have these settings: Settings > Reading > Your homepage displays > A static ...
0
votes
2answers
885 views

Is_front_page inside header.php is always returning true

I have a page that I designated as my front page using the reading portion of settings in the dashboard. When I place a script inside of an if statement using is_front_page in functions.php, it only ...
5
votes
4answers
10k views

is_front_page only works in theme file, and does not work in functions.php

If I use is_front_page() in my front-page.php file it works as expected. However if I use the same function in my theme functions.php file it does not work. Is this normal behavior? If not can it be ...
1
vote
2answers
125 views

Disable front-page.php template

I use front-page.php on my template to display home page. But I want to disable if the user uses another page for the home page from settings. Is there a solution? When user select a page from ...
0
votes
0answers
13 views

Creating a child page with the parent set as the front page results in strange permalink

I'm not sure if this is a bug by the theme author but when I try to create a sub page (child page) with the front page as the parent, the resulting permalink includes the name of the template. This ...
0
votes
0answers
14 views

Homepage rewrite rule

I'm trying to display a product tag archive page (WooCommerce) as my basic-main-root domain (mydomain.com). It can be done with the 'shop' page (via WordPress front-page settings) - which is the same ...
1
vote
1answer
13 views

Changed site URL and now my Front Page doesn't display correctly

This wp site is a redesign of an old non wp site. I have made the site on the same server, but in a different directory named /nou until it was ready. everything was fine until I copied the site in ...
0
votes
2answers
7k views

Accidentally deleted the 'home' page as my front page, can someone help?

usually when you create a blog it automatically sets the front page where it shows all of your blog posts as the'home' category, however, i accidentally deleted the home page as the front page. when i ...
0
votes
2answers
108 views

How do I activate a certain block template only when editing the front page?

I've chosen a custom page(-post) to be my front page. Now I want to use a block template only on that page, when editing it in the Gutenberg editor. As I understand it I have to add it on "init" or ...
5
votes
2answers
1k views

What is the correct method for determining 'is_front_page' when using filters such as 'pre_get_posts' and 'posts_where'?

On my site several filters should be applied if the user is viewing the static home page. My understanding is that is_front_page() should determine if that is indeed the case. However, whenever I ...
0
votes
1answer
20 views

change header height on 2017 theme for logged in users

When a guest sees the homepage they see the (almost) full height picture which is quite nice I think. However, when a user logs in I'd like them to be redirected to the home page but with a much ...
0
votes
3answers
4k views

Different Front page for Mobile

I want to make a different front-page and show it to the mobile user, instead of the one used on desktop. In detail, right now we have set our site to show desktop-front-page to user, when he lands ...
0
votes
1answer
133 views

Make pagination work as a carousel (custom query)

I'm using a custom query on my static front page in order to show my posts, but I would like my pagination to work kinda like a carousel (instead of loading an entire new url). So, basically I want ...
0
votes
1answer
35 views

Image is missing on site homepage

I opened a new site. But my site's home page picture is not seen? It is said that the picture can be seen in the opening of the post. Why do not I install the theme. Which one does not come to the ...
0
votes
2answers
63 views

'Nothing found' on home page after custom CSS edit

I did a small adjustment in the 'custom css' in my theme settings, and now I broke my theme. Whenever I select a page as the home page, it says 'Nothing found'. Whenever I visit a page thats not a ...
1
vote
2answers
674 views

Why wordpress kicks me back to the dashboard of xampp? [closed]

Somehow when I was working with my local dev environment, I have made some mistakes in some php files which I could not figure it out. So, I have decided to copy the files from the public_html and ...
-1
votes
1answer
43 views

How i can customize WordPress front page in WP dashboard editor?

Although there are many questions related to front end editing, still none of them provided me some way to deal up with customizing WordPress front page using WordPress dashboard editor. I'll be glad ...
66
votes
3answers
44k views

When to use is_home() vs is_front_page()?

I've found that is_front_page appears to return true when I'm viewing the home page and have a single sticky post assigned there. It also returns true when I've assigned a page as the static front ...
2
votes
2answers
2k views

Custom background for the index page only?

I am stuck at add_custom_background. I can change background color/image but I only want to change my index page. Currently, the changes apply on the whole page. I want to make the changes from WP-...
0
votes
2answers
3k views

Setting index.php as a static home page without posts?

Is it possible (and good practice) to set the index.php file as my static home page, without any posts? In Settings > Reading Settings > Front Page Displays I don't see the option to select index.php ...
1
vote
0answers
34 views

Is it possible for homepage in Twentyseventeen theme to look like a standard page?

I'm using the Twentyseventeen theme and I would like the home page to be a regular page, rather than the default style for the theme, which is a very large image and an arrow down to allow you to get ...
0
votes
1answer
45 views

How do I put my frontpage featured image in a page template for home.php?

Important: I want to makes sure this is clear: I am not asking how to get the post thumbnail. I am asking how to get the featured image for single page which is created through the Gutenberg editor ...
0
votes
2answers
276 views

How to display only sticky posts on my automatically generated front page?

I want to display only the sticky posts on my front page. Right now it's possible to do a setting where the sticky posts are displayed at the top followed by the rest of the posts. I don't want to ...
5
votes
4answers
4k views

How do I fetch the static front page using the REST API?

I would like to create an Angular 2 SPA that uses the WordPress REST API as a back-end. How can I use the API to fetch the page the user has set as their front page?
0
votes
2answers
79 views

All Pages visible on the Frontpage

I use the Theme Twenty Seventeen in WordPress to create my website. Here all pages are one below the other seen on the frontpage. Now I added a new page, but this is not listed on the frontpage. I can ...
0
votes
1answer
1k views

AMP version of front page without plugin

The below code is working for all pages and posts but it is not working for front page anybody helps me. e.g HTML version www.example.com and AMP version www.example.com/amp How to include amp ...
1
vote
1answer
430 views

Add rewrite rule to call front-page.php?

I am trying to create a multilanguage website. And I have set my home page to a static page in my WP admin area. This home page ID is 2 and it calls front-page.php template when I am on the home page ...
0
votes
1answer
67 views

Using a specific template for front page only

I am using supersized full slider for my themes, but it need all the script and stylesheet gets enqueued before wp_head. So it becomes the part of the header. Now whenever I use the header template (...
2
votes
1answer
50 views

How to block access to blog-page for users not logged in?

My blogpage [is_home()] is located at /blog. My static page [is_frontpage()] is not the blogpage and located to /about-us. For users not logged in, the startpage is the static page. For users logged ...
2
votes
2answers
58 views

How do I make my single-work page show on my front-page.php?

How do I make my single-work page show on my front-page.php? So I want to show my work page on the homepage. For example, my work page link is www.example.com/work but I want to show the work page in ...
2
votes
3answers
19k views

index.php not loading in main folder of wordpress

I just installed [first time] WordPress 4.3.1, but I was facing the problem with it so I downgraded and installed 4.2.5 and facing same problem. Problem: index.php is not loading, I clicked on link ...
0
votes
1answer
42 views

Edit a template while still keeping a Landing Page on the main address

Is it possible to edit a WordPress template while still keeping a Landing Page on the main address? I'm currently building an online platform using a template from Theme Forest. However I would like ...
1
vote
1answer
122 views

Set front page as static page [closed]

I am new to WP. I have installed WP in my local system with WAMP and trying to create my own theme. I have created pages and trying to set my "Home" page as front page and "Blogs" page as my posts ...
0
votes
0answers
600 views

After update Woocommerce shop page not showing products

I have assigned shop page as my Static front page from "Settings > Reading" and it working fine. But yesterday I have update WooCommerce Plugin to new version and after that my home page not ...
0
votes
0answers
23 views

Post not showing in the front page

I can see the latest post when I'm logged in to my WordPress account (visit site). But when I'm reaching my site with other browser or other devices, the latest post is not showing here.
0
votes
1answer
1k views

List posts of custom post type under category name

I want to display category name as a collapsible headers and inside the collapsible body I want to display post titles linking back to original post. I am using custom post type 'University' and ...
0
votes
1answer
23 views

How to detect if some page template has been selected

I'm wondering if, in the static front page, is possible to detect if the some page template has been selected for my page. I'm building a template and I'd like to have a static front page, but I'd ...

1
2 3 4 5 6