You can set the static home page through the wordpress customizer.
If you already have the page with the portfolio, just follow the steps below. Otherwise, create the page with the portfolio page template.
On the left menu, select Appearence, then Customize. Scroll down and you will see the option Static home page. Click on this option and select the Static page
radio button, then a option will show. Click on the dropdown menu and select the page that you want to be the homepage. No need to edit the code.
This also can be done by Settings > Reading.
Related Posts:
- Redirecting to home-page when saving any edited code
- Random and Erroneous WordPress Redirect
- All pages showing up as homepage on WordPress website
- https multiple redirects
- Redirect home to another page with htaccess
- How can I redirect my website’s homepage to a random blog post?
- How to redirect to home page after registration?
- Any action in wordpress redirects me to home page
- How can I replace my primary url globally with a parked one?
- Extra Text in URL
- Redirect /home to home.php
- Front page is being directed to an unknown site
- How do I change the home page to the registered user’s profile page
- How to redirect all page requests to a single “goodbye” homepage? [duplicate]
- Add new post redirection [closed]
- How to Redirect WordPress domain.com/?anyword to 404 Page?
- How do I redirect the browser to 404 page, if no posts are found in home page
- How to show taxonomy on front page
- Site using static homepage, redirects (301) and removes pluses from query string
- After disabling Multisite, homepage redirects to non-existing page
- One set of Child Pages redirecting to Home page?
- How to make my homepage automatically redirect to an external website?
- WordPress Redirecting Form Action to Home Page
- How do make WordPress to let alone my static home page?
- How to redirect non-logged in users to a specific page?
- When I change slug, will WordPress create redirect from the old URL?
- Why is WordPress redirecting from http to https on a local environment?
- Non-WordPress page in subdirectory under WordPress page
- Implementing global redirection (automatic redirect for all pages who had their slug changed)
- Redirect to custom url when registration fails?
- How to redirect url requests to https? [closed]
- Best way to handle redirects
- Redirect to custom URL after registering from a page with registration form
- WordPress within a subdirectory of another WordPress environment doesn’t work
- wp-login.php — redirect logged in users to custom URL
- WordPress Customizer: custom redirection after closing
- Redirect feed to 404 page
- Does WordPress automatically redirect url without parent slug?
- is_home() in HTML head
- Hiding WordPress behind IIS redirects
- htaccess 301 redirect http to https doesn’t work
- Site redirecting from http to https [closed]
- Create a front page template and separate page for posts?
- Redirect if $_Server[‘REQUEST_URI’] is /wp-login.php?checkemail=registered
- set up 301 redirect within wp-content/uploads/ directory of a WP site to a new image URL
- How to redirect user after login to a specific page?
- How can I redirect a URL to an anchor link while maintaining the URL?
- How to remove duplicate and unnecessary part in a url using htaccess and regex?
- Masked a external URL and redirection plugin
- Redirect “http://old.net/category/postname” to “https://new.com/postname”?
- Redirect non existing page to frontpage
- How do I do a redirect to WordPress permalink with post id via htaccess?
- WP page 404 error only on mobile
- is_front_page and is_home are not working in page.php
- How do I put my frontpage featured image in a page template for home.php?
- How to prevent redirect 301
- Redirect one domain to another
- How to redirect wp_login_form to new page after user loged in?
- How to redirect multiple subfolders back to root domain?
- How do I Redirect Tags from Old Joomla Site to New WordPress Site?
- How to redirect user after login to the page called by his first name?
- Redirect After Login Error
- Whenever I try to publish a post in wordpress, I always get redirected to the installation page…why?
- Is it possible to detect if a POST action is for a “Save Post” before the save_post action?
- Disable and Hide WP-JSON
- URL redirection
- Old missing file in wp-content/uploads/ returns a 500 error, how to catch and redirect?
- Browsers Forcing Multisite to https
- Is it possible to change redirect template through a shortcode?
- How do redirect user back to previous page when on certain pages?
- Relink Drupal Permalinks “…node/XXXX” to wordpress Permalinks (e.g./audio/)
- How to 301 redirect WP posts id “/c/94940894” to permalink with post name?
- WP 301 redirect does not work
- Redirect Image URL to it’s parent post
- Redirect user if they are logged in
- WordPress site not forcing from http to https instead getting redirected too many times
- Redirect not work
- There is 1 redirect
- Redirect HTTP request to HTTPS request
- All new posts serving 301 redirect
- home page redirect loop after update to 4.8
- Moving site from HTTP to HTTPS
- Redirect from plugin created page
- What’s the best way to redirect to a new wordpress website?
- Tag archive page not working
- 301 Redirect only for posts
- Custom redirects with using SQL
- 3 x 3 grid of posts on the home page
- Getting error when trying to redirect WP site to mobile site
- wp_login_form: Redirect to dynamic url according to username
- Plugin redirects URL structure using 301 redirect. Time to disable the plugin?
- Redirect URL while building site
- Redirect a WP to another with all URL
- Creating custom link that redirects to a another link
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
- How to disable login and registration pages?
- How to redirect users without permission to view content to a custom page?
- redirect the root of a domain, while leaving the www version unredirected
- How to Create Custom Route to a page in WordPress
- How to create a redirect to another domain like safe redirect manager from php