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?
- Make category page the wordpress homepage (not blog)
- Logout redirect to home page
- check first time login only
- How to change the default logout link on WordPress Admin
- Authentication / login mechanism (non wp-admin)
- Setting a redirect cookie in wordpress
- Redirect users after first login
- Redirect to current page after wordpress login
- How does WordPress redirect to WooCommerce shop page? [closed]
- Set front page as static page [closed]
- 404 redirection and Google’s index [closed]
- WWW to non WWW redirect effects on load speed
- How to redirect user to specific page based on the input password
- Strange redirection issues on wordpress from ssl with padlock to ssl without padlock
- Change gravity forms confirmation redirect query string to include entry id [closed]
- How to redirect visitor to a custom URL using PHP code in functions.php
- How do I redirect /search/ to ?s=
- 301 Redirect Loop
- Infinite loop behind SSL proxy on non-standard port
- How code a redirect back to page from form thanks
- How to use Regex to add to a url?
- htaccess redirect invoice.php to /client/invoice.php
- Make posts 410 dynamically
- How to properly encode url with parameters for redirect_to
- How to disable redirect on pagination first page
- Redirect user to a form until they have filled it out [closed]
- Buddyboss Platform plugin causing “too many redirects”
- Always redirect current user to certain page
- How To Fix 404 errors caused by Google Indexing WordPress In Subdirectory
- Unable to access folders in same level as wordpress installation
- Get query parameters from external url and make a redirection
- Why does specifying ‘about-us’ as a link target take longer than specifying ‘about-us/’?
- Internal Links that Automatically Update
- Usage of the login_redirect filter
- Show different page for first time user
- Login/Register redirect user with message
- Redirect outside WP after login
- Redirecting from wp-content?
- Redirect user on first visit based on geographical location
- Create a permalink to a pdf?
- My site doesn’t redirect from HTTP to HTTPS
- Bedrock WordPress
- Redirect one domain to another
- Only execute function if SSL is set up properly
- Redirect User to login page
- How to redirect user after login to the page called by his first name?
- Redirect after get_delete_post_link
- Login redirect to previous page
- Redirect when not logged and parametr in link
- Hide a Post everywhere except on redirect
- Keep the old referrer after failed login
- URL redirect regular expressions redirecting all after first viriable
- 301 Redirect Link to Media
- WordPress Redirect post to outside website based on useragent
- How to create mass 301 redirects with PHP in Nginx server without using a WP plugin
- HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page? [closed]
- WordPress redirects to backend when i’am not logged in
- Redirect to custom admin menu after plugin activation
- Redirect HTTP request to HTTPS request
- Woocommerce login to specific page or referrer
- 301 Redirects when change URL in WordPress database
- How can I redirect to another page with screen already at the bottom of the page?
- How is this URL being redirected?
- How to move a https website back to dev and access the admin?
- Why is WordPress redirecting to homepage after GET form submit?
- Redirect after user changes password
- Custom Form Redirects to Post after Submit
- URL is redirecting (301) when query string is passed through URL
- What is the advantage of using home.php over index.php for the front page
- How to access the so called “Posts page”
- Plugin html-on-pages: URL not redirecting
- Hide page for user logged and redirect for profile? [duplicate]
- Redirect ignore last URL segment
- After migration index page still redirects to old url
- Redirect WordPress multilingual website to the domain
- How to prevent wordpress from redirecting media attachment page to media page?