Can I have two websites with one front page

You can create a static front-page in your theme. If you’re using front-page.php, you are free to put anything in there, you don’t have to rely on the loop. However, I’d rethink this. If a user that goes to domainA has to click another time to actually get to the contents of domainA, you’re increasing … Read more

change header height on 2017 theme for logged in users

WordPress will automatically add a body class to the body tag if a user is logged in. You could potentially use this to adjust the height. For example.. .logged-in #myElement { …Your CSS } Something like this should work. .logged-in.twentyseventeen-front-page.has-header-image .custom-header-media { height: calc(70vh); } Note the calc 70vh is 70% of viewport height, so … Read more

Hiding New Posts on Front Page

You could try do something similar to the code you have tried, but using the before argument instead of the after: $query->set( ‘date_query’, array( array( ‘before’ => ‘-1 day’, ) ) ); This way, you should get only posts published before 1 day ago.

Different front page for logged in and logged out user but the same URL in WordPress

If you’re just trying to display different content to logged-in vs. logged-out users, I’d recommend using the the_content filter. add_filter( ‘the_content’, ‘wpse_387084_content_selector’ ); function wpse_387084_content_selector( $content ) { if ( is_front_page() && is_user_logged_in() ) { $page = get_post( 2516 ); $content = $page->post_content; } return $content; } The above code assumes that you’ve set the … Read more

custom change in front page [closed]

Looking at your site, then looking at the live demo of the theme … and that archive section isn’t hard-coded into the theme by default. This potentially means one of two things: You or someone managing your site added it The archive widget is the “default” widget for some section and you haven’t put anything … Read more