There are definately a few ways of achieving this functionality. I assume by “main page” you mean the home page…
a. Create a new page called “home”
b. In your site settings change your homepage to point to the “page” home, rather then grabbing your 10 newest posts.
c. Now you have a page hook which you can build a custom template for in one of two ways.
1.) Use wordpress “custom page templates” to create a new template and apply to the new “home” page in “edit page”
http://codex.wordpress.org/Theme_Development#Custom_Page_Templates
OR…
2.) You can simply create a new file called “page-home.php” (ensuring the slug of your new home page is “home”) and WP will use this page template instead….
Solution 2 is more streamlined for progamming if your clients don’t need to apply templates themselves.
Hope that’s helpful to you
Related Posts:
- Getting failure when using filemtime() with wp_enqueue_style
- How to override pluggable function in theme?
- Should we use get_template_part() in functions files instead of include_once?
- How bad is it if I write AJAX functions using wp-load.php?
- How to know if a child theme is being used?
- How to modify an image block in Gutenberg WordPress 5?
- WordPress Settings API error
- Remove the word ‘Categories’ from wp_list_categories
- Using Bootstrap in themes
- Add a dropdown to theme customizer
- How to control initial wp_head() output?
- How do I show sticky posts on a static front page that also contains content?
- Any walker causes blank menu?
- How to change post thumbnail title and alt attributes to post title?
- Why might $input (Settings API) be coming through empty?
- add generated stylesheet from parent theme after child-themes style.css
- Wrapper class: How to get rid of call_user_func_array() warning?
- Change Genesis Tag from Page Template [closed]
- Creating Page Based on Category
- How to check if post has any tag?
- Why is save_post triggered even when I havent saved the post
- Add custom field automatically to custom page types
- using wp_enqueue_script to attach jquery-ui
- Can not Remove Archives and Meta from Sidebar
- Get last modified date for menu link
- Similar Posts – NO plugin
- How to add multiple custom widget areas
- Add social icons in a theme through custom admin menu
- file_get_contents Not allowed in Themes?
- Best approach to create sites with Modular Content? [closed]
- front-page.php is not Listing in Static Front Page List
- Change file name from wp_generate_attachment_metadata
- Change setting name in Customizer and keep the data
- CSS won’t style output of wp_nav_menu() correctly
- Warning/Error in Admin Panel while developing theme
- How do I get the next page of posts link?
- display 20 lines only with the_content
- How do I remove twentyten without ruining what I did?
- Custom theme not visible in Appearance
- Use debugging for add action events
- Obtain full v2 REST url?
- Creating multiple hooks for theme
- after_setup_theme, Global Variable and Theme Customizer
- Set default screen option for appearance -> menus
- How to add a second stylesheet to the editor
- Single Page theme [closed]
- Conditional statement to show pagination
- Can I have two different theme for two different language?
- filter “inactive” categories from wp_list_categories?
- the_permalink() doesn’t work
- WordPress Theme’s 404 File Getting Called Every Page Load?
- How to first edit in local WordPress editor on page and the add code?
- Custom Field created in add_meta_boxes reappearing itself again in the default Custom Metabox
- WP_Comment_Query – Get comments and answers separately
- excerpt() shows different result between remote and localhost(development environment)
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- How to create a custom page(not a template) in a theme
- How to override p2 breathe theme plugin in content template file?
- What’s stopping my HTML from rendering in my template parts?
- Default Permalink Type to Postname
- add_filter to parent theme helper class function from child theme
- How to Change custom post type Dashicon Color
- cannot echo the_post_thumbnails
- How to escape html generate by a loop
- Is there any solution, ide/tool etc., for automatic escaping for WordPress?
- theme style is applied on the dhasboard rather than the website
- What $handle does WordPress use for a theme’s implicit style.css?
- CSS added through customizer neglects the need of a child theme?
- Shortcode call not working in WP Template
- Output richtext metabox value
- Read more doesnt work with query posts
- help needed for suit designing tool
- Dynamic Image Links Depending on Excerpt/’Single Post’ View
- Custom fields for custom post types
- How can I sort my loop based on meta data, using a form?
- What is the_permalink() on a category page?
- Auto focus RichText field
- How to create nested array attribute
- Customizer API Multi Sections in single Panel
- Sidebar not displaying (theme development)
- WordPress theme options checkbox default checked state
- Custom themes that won’t work when theme is changed
- How can i Limit My Wp Theme To Only One Site
- WordPress Theme: What is the right way to put inline CSS loading from a CSS file
- add class to all images inside the content
- Cold Fusion to WordPress
- Creating a theme just to deploy a single page
- Make a custom field in admin post.php read only
- Weird ‘theme update’ error [duplicate]
- get_posts is duplicating
- How to display only some widgets of a sidebar?
- How to remove menu from WP-Admin menu
- Custom Infinite-post-scrolling in a custom theme:
- Alternating CSS classes for dynamic content [closed]
- WordPress Loop with Custom Post Type for Bootstrap Accordion [closed]
- How do I make it super customisable?
- Isotope overlapping .items because of featured images – HELP! [closed]
- Theme.json: creating different sections of the color palette
- Custom Theme functions.php – Using add_settings_field and input type=”file” to set custom logo
- Image and font support missing in editor when deploying theme remotely