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
23 views

Can I have two websites with one front page

I have two businesses with two different domains but I would like to have one front page where visitors can click on a link to either website. Is this possible, if so how? I thought I would be able to ...
0
votes
1answer
59 views

What code controls the animation for the front-page header in TwentySeventeen

I'm struggling in finding the code that initiates the animation process for the header front page of Twentyseventeen. I would like to see it. All I know is that when the animation is over, it adds ...
0
votes
0answers
319 views

How to echo site url if not on index.php while using anchor based nav

I've been attempting to hack together a single page Wordpress theme. So far I've had success in displaying the page loop for content and nav, and I've used JQuery page-scroll to animate the navigation ...
1
vote
1answer
71 views

if I create 'front-page.php', then how do I link to post index?

I want to have a custom front page and a blog page. So I created the front-page.php file, which will include my custom markup. I don't want to have blog post index on my front page, so I created home....
0
votes
1answer
41 views

Reusing content from front page on sub page

I am trying to reuse content from my static front page in a different page template. But because my front page is static, I can not call it by page name. Is it possible to call the front page another ...
0
votes
1answer
181 views

Front page showing ACF only once, is that solvable to show the ACF per post? [closed]

Im creating a new website, and each of my blog posts have a few ACFs. I don't want the post to be clickable so I it will be the front page only. My AFC work perfectly, but although I have 2 blog posts,...
0
votes
1answer
3k views

My custom template page not loading content inside it?

I want to create my own wordpress theme for that I have my own HTML template, I want to convert this HTML template to a wordpress theme So, I copied built-in wordpress theme "twentyseventeen" and I ...
1
vote
1answer
104 views

Loop first six posts in carousel, next eight in grid

The front page needs to have the first six posts in a carousel and then the next eight in a grid. What's the best practice for looping through that kind of design? I'm currently using "get_posts" to ...
0
votes
1answer
99 views

Category posts show on local install, they do not show on live server

Puzzled to see posts in category are showing on local XAMPP server, however they do not show on the live server. Here is the code to display the category posts. It is a really simple one pager ...
0
votes
1answer
99 views

Category and Posts in front page

i would like to make a front page with the category name and under every post of the category.The code that i have tried is: $categories_list = get_the_category_list( esc_html__( ', ', ' ' ) ); if ( $...
0
votes
1answer
2k 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 ...
2
votes
1answer
3k views

`post_type` => `any` not giving me my custom post

I'm using Roots Bedrock + Sage 9 Beta 3. I've created a custom post of type lp that I want to set as my homepage. Here is the code I'm using: function cptui_register_my_cpts_lp() { /** * ...
0
votes
3answers
103 views

plugin content on front-page only. Nowhere else

With a plugin I'm trying to develop, I'm trying to place some content on the front-page of the website after the header. In my plugin PHP file I have this (I've cut the html content out to save space)...
0
votes
1answer
29 views

I want to load a pre-built php page (and assocated scripts/styles/directories) as the front page. How do I go about this?

I've pre-built a front page for WordPress using PHP, JS, CSS and resources found in other files. The whole page setup is 23 files (1 .php, 1 .js, 2 .css, 2 .otf, 17 .svg/.png/.gif) and 2 folders. ...
0
votes
1answer
40 views

What is the best way to build home pages with a lot of sections for distributable themes [closed]

I want to develop high quality themes by taking in to account all the important things like usability, accessibility. I just want my theme to be "perfect". Here is my dilemma. So, what is best way ...
0
votes
2answers
85 views

Letting wordpress decide what template and page to use based on condition

I am really not sure how / what to ask, but ill try my best... Can I some how tell Wordpress (in the index.php file maybe): If A Then load page Y with his matching template (which you always know so ...
2
votes
1answer
280 views

Set Default Page On Customizer Live Preview

I have wordpress site and set login page as static front page. If I go to theme customizer exactly it will use front page to show site live preview. How to change page live preview to another page? In ...
0
votes
1answer
473 views

Last single full post in home page, excerpts in blog list

What would be the best approach to show only the very last single full post in the home page and in blog page the full (paged) list of blogs showing only its excerpts? I'm thinking of 2 different ...
0
votes
1answer
219 views

Gravity Forms Anchor only on Front Page?

I have a front page that is pretty long length-wise so I have enabled add_filter("gform_confirmation_anchor", create_function("","return true;")); in my functions.php file. This helps the Gravity Form ...
0
votes
1answer
4k 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 ...
1
vote
1answer
2k views

How to display the posts and news in front page?

I'm trying to display the two recent posts in a bloc I created in a front page of my website. index.html: <div id="blog"> <h1> Post title 1 </h1> <p> Description </p> &...
0
votes
1answer
7k views

Home link in the homepage of my wordpress does not show my blog posts

I want the home link at the top of my theme in word press to display all the posts i have written so far but when clicking on it the page shows nothing. I have already tried changing the settings as ...
0
votes
0answers
913 views

Paginated Post List on Front Page

I am trying to get a list of posts on the front page of thereimers.co to have pagination. I am convinced that the code was working when I first launched the site but after checking back a few months ...
0
votes
1answer
55 views

wordpress is_front_page() issue

I am updating the page title of all pages with a function i have created: function wpss_show_custom_description() { $wpss_disable = get_post_meta(get_the_id(), 'wpss_disable', true); $...
0
votes
1answer
23 views

I created a new home page and set it as the home page in the reading section, but I get an error when typing in the home page url

I called my new home page "home" and it's permalink is website.com. In the reading settings, it set to a static page and the home page is set to "home". I renamed the old home page to something new: ...
1
vote
1answer
388 views

Detect if current page is front page within custom query

I am currently working on a project where we're designing a custom frontpage template for a static front page. Within the template are three different custom WP_Queryies with relating loops. Within ...
1
vote
2answers
5k views

Loop on front-page.php

I'm trying to load the 3 latests posts on my homepage. I'm an utter novice but I seem to be making progress. This is my code (below). At the minute each post has a title of "Home", I understand that ...
2
votes
1answer
348 views

Theme's page.php and index.php template files are confusing me

I was watching a WordPress course, the explainer has page.php and index.php theme template files. Which means the page.php must load the home page, but the home page is loaded with index.php! I used ...
0
votes
1answer
6k views

How to add dynamic content in title and meta description in wordpress theme for homepage, post page, category, tag and pages

I am creating wordpress theme and want to get and display dynamic content for my theme Title Tag and Meta Description Tag. For Title Tag Content: I want Title For Meta Description: I want Bloginfo('...
1
vote
1answer
126 views

Any Ideas for Including “More Tag” with get_pages($args)?

I have run into an interesting issue. My intention is to have a front-page.php that displays a list of pages, with titles and content (some of which may be truncated with tag. I have augmented the ...
0
votes
2answers
12k 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
2k 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
1answer
3k views

Shortcode not working on static front page

A shortcode from a plugin I am trying to use is not working on my static front page, it only shows as plain shortcode text but It works well on all of my other pages. I'm using Illdy theme, I've ...
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 ...
0
votes
3answers
62 views

why can't i add front.css to my frontpage.php

My function in functions.php function adding_front_style(){ if(is_front_page()){ wp_enqueue_style('front',get_template_directory_uri().'/css/front.css'); }else{ //some code } } add_action('init'...
2
votes
1answer
13k views

Can't edit front page of website [closed]

I need to edit the content on the front page of my website, but I can't figure out -where- the front page is stored. This is the site. Anything above "ホーム" (the stuff saying business class, kids ...
0
votes
2answers
1k 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 ...
1
vote
1answer
3k views

How to set up a single portfolio page as home page?

I would like to have a single portfolio page set up as wordpress homepage at my domain www.syin.eu, using Valeria theme (biobutterfly.com/valeria/) To achieve this, what I did is to redirect the ...
0
votes
1answer
179 views

How to test if a specific page is the front page?

How do I determine of a specific post id belongs to a page that is set as the front page (set as static front page via settings > readings in the backend)? Context: I want to write a function, that ...
6
votes
4answers
6k 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?
4
votes
1answer
185 views

How does WordPress decide what template to use as frontpage

I'm so confused about this thing. I tried to figure this out for ours, but can't seem to find a solution. I'm currently working on a theme for a client, using the components business starter theme. I'...
0
votes
1answer
20 views

When I select a page for frontpage, it is blank

I have some pages on my website if I select a custom post (continents) as the homepage in Settings -> Reading, everything looks fine. If I add another page as the front page, I get and empty page (...
4
votes
3answers
14k views

How to put custom post types on front page

I'm trying to create a portfolio with WordPress using a Custom Post Type to display my projects. Each project I want to display on my static front page with a featured image as a thumbnail, and by ...
3
votes
1answer
14k views

Unable to load static front page on home url

I installed wordpress in /wp/ directory. So in my blog every URL had /wp/ in it. I followed multiple articles(1,2) and was able to remove the 'wp' from URLs. before - example.com/wp/post-1-name after ...
0
votes
1answer
279 views

Implement a slideshow-like frontpage with text overlays

I am looking for a WordPress solution - may be the appropriate theme or a combination of theme/plugin/widgets... - for the following: the front page of the site should present a series of fullscreen "...
3
votes
1answer
1k views

Custom query_var causes displaying posts archive on front page

I'm having an issue which is caused by custom query var named date I've added using query_vars hook. When date parameter is present in the front page URL (https://example.com/?date=23.08.2016), ...
1
vote
1answer
367 views

Include sticky posts on the static page front page

I have a static front page that lists out news. Right now, it ignores the stickiness of a post, and justs lists it. I want it to work the same way as my blog posts page does. I want it to list out all ...
0
votes
1answer
17k views

Wordpress, how to figure out how to edit front page

I am currently using the Onepress theme and want to edit the header section, the part that prints the site title. However, I cannot for the love of life figure out which part actually controls the ...
0
votes
1answer
69 views

Custom pages missing on “front page” setting

I have a custom post type with 9 custom pages on WP 4.5. When I got to Settings -> Reading -> A static page -> front page dropdown, I see a list of all the standard wp pages plus at most 5 of my ...
0
votes
2answers
4k views

Display custom field from the front page on another page

so I am hoping to retrieve a custom field that is already displayed on the "front-page.php" template on an another page.php template of my website. I know how to do that with the post-id way, but what ...