- This topic has 3 replies, 2 voices, and was last updated 7 months, 1 week ago by
Tom.
-
AuthorPosts
-
July 22, 2020 at 4:22 am #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 twiceWhen 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.phpHere 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.
July 22, 2020 at 9:17 am #1372401Tom
Lead DeveloperLead DeveloperHi there,
Strange, is the Use Navigation as a Header option checked?: https://docs.generatepress.com/article/navigation-as-a-header/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 22, 2020 at 11:01 am #1372541Michael
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
July 22, 2020 at 2:18 pm #1372688Tom
Lead DeveloperLead DeveloperGlad I could help! 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.