Questions tagged [frontpage]
The home page of a site. Could either contain the blog index, or a static page.
283
questions
0
votes
1
answer
3k
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
1
answer
39
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
vote
1
answer
11k
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 ...
2
votes
1
answer
553
views
How to display 3 different loops in 3 columns on homepage
I've been doing some searching on this topic but so far nothing I've found really answers my question. I know there are a few ways to go about this, but I'm looking for the method that's going to be ...
-4
votes
4
answers
4k
views
Wordpress Site says Front Page is 404 When Not Login
I have a Wordpress site, I have the Front Page settings right in the Reading settings, but when I goto my Wordpress site and I am not login, I get a 404 error and my page looks messed up. When I am ...
0
votes
1
answer
28
views
What is the need for the static front page [closed]
I've recently asked a question about front-page.php and home.php usage (How to setup front-page.php and home.php) and thought it will clear things out, but instead I realized(while testing/playing ...
0
votes
1
answer
233
views
How to connect front-page.php to page in admin panel?
I need to make static front page of the site. I created file front-page.php and now my site first of all loads front-page.php as I needed, but how I can connect front-page.php to for example "Home" ...
0
votes
1
answer
31
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
1
answer
81
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
0
answers
427
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
1
answer
86
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
1
answer
51
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
1
answer
205
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
1
answer
4k
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
1
answer
117
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
1
answer
137
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
1
answer
161
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
1
answer
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 ...
3
votes
1
answer
5k
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
3
answers
163
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
1
answer
31
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.
...
1
vote
1
answer
58
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
2
answers
105
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
1
answer
347
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
1
answer
505
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
1
answer
264
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
1
answer
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
1
answer
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
1
answer
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
0
answers
1k
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
1
answer
59
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
1
answer
27
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
1
answer
434
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
2
answers
6k
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
1
answer
441
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
1
answer
7k
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
1
answer
131
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
2
answers
14k
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
2
answers
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
2
answers
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
2
answers
4k
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
3
answers
66
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
1
answer
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
2
answers
2k
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
1
answer
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
1
answer
258
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
4
answers
8k
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
1
answer
205
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
1
answer
23
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
3
answers
15k
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 ...