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

How to connect front-page.php to page in admin panel?

create a new template in your theme directory and call it home-page.php Within that template place the following in at the start of the php file (remove the php tags if necessary): <?php /** * * Template Name: Home Page Template * */ Copy and paste your code from front-page.php after these lines and save. … 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.

Homepage not working after setting as frontpage

Try going to the Settings Panel, and then changing the Permalink structure to any other. After this, try changing back to the original setting. This can be some problem with the rewrite rules made by the theme when the base structure is changed.

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)