[Resolved] Header display on a php page

Home Forums Support Header display on a php page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1371952
    Michael

    Hello,

    we’re using GP Pro.

    I have a php file that is called from a GP WordPress page.

    I have included header and footer in the php file with the functions get_header() and get_footer(). The footer is displayed correctly.
    There are the following problems with the header:
    – at high resolutions (more than 1400px width; container has 1400px) the primary navigation is not displayed over the full screen width
    – the logo is displayed twice

    When scrolling down, the pinned primary navigation is displayed correctly.

    Here is an example page:
    https://www.trueffelsuche.com/wp-content/plugins/aaa_plugin_button/watchlist_eintrag_test.php

    Here is the code of the php page:

    <?php
    
    $path = $_SERVER['DOCUMENT_ROOT'];
    
    include_once $path . '/wp-load.php';
    include_once $path . '/wp-includes/wp-db.php';
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    
    get_header();
    
    	echo "<br><br><br><br><br><br><br>";
    	echo "Test 1234 <br>";		
    	echo "Watchlisten-Eintrag: ";
    	echo "Test 5678 <br>";
    	echo "<br><br><br><br><br><br><br>";
    	echo "Test 1234 <br>";		
    	echo "Watchlisten-Eintrag: ";
    	echo "Test 5678 <br>";
    	echo "<br><br><br><br><br><br><br>";
    	echo "Test 1234 <br>";		
    	echo "Watchlisten-Eintrag: ";
    	echo "Test 5678 <br>";
    	echo "<br><br><br><br><br><br><br>";
    	echo "Test 1234 <br>";		
    	echo "Watchlisten-Eintrag: ";
    	echo "Test 5678 <br>";
    	echo "<br><br><br><br><br><br><br>";
    	echo "Test 1234 <br>";		
    	echo "Watchlisten-Eintrag: ";
    	echo "Test 5678 <br>";
    	echo "<br><br><br><br><br><br><br>";
    	
    get_footer();

    Can you help me, please?

    Thank you.

    #1372401
    Tom
    Lead Developer
    Lead Developer
    #1372541
    Michael

    Hi Tom,

    yes, the option use navigation as header is activated.

    I disabled that and it works.

    Thank you very much.
    Your support is wonderful!

    Michael

    #1372688
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.