- This topic has 48 replies, 2 voices, and was last updated 5 years, 8 months ago by Leo.
-
AuthorPosts
-
August 19, 2018 at 9:56 am #653637LeoStaffCustomer Support
Are you seeing the same thing as my screenshots above?
I’m trying to figure out why the two pages are different. The contact page has no header and the secondary navigation is working which is the end result we are trying to achieve right?
August 19, 2018 at 10:05 am #653641HowardYes I deactivated contact page form but both desktop and mobile have primary nav home and contact there .
Secondary has mobile and desktop nav with one you tube icon from snippets activated for font awesome 5
Also
Simple css activated with
.site-header {
display: none;
}.inside-footer-widgets { text-align: center;.
Don not display site header code
.site-header {
display: none;
}August 19, 2018 at 10:11 am #653646LeoStaffCustomer SupportWhat do you mean by “I deactivated contact page form”?
So let’s take it another way, what’s not working correctly on the Contact page?
Also why is the home page showing nothing fount? Since it’s assigned to be the blog page, can you add a test post to make sure everything is working correctly?
August 19, 2018 at 10:20 am #653656HowardTest Post there
Deactivated contact formAugust 19, 2018 at 10:28 am #653660LeoStaffCustomer SupportOk so this is what I see on the Home page now:
https://www.screencast.com/t/N31y8Qb9Looks like everything is working?
August 19, 2018 at 10:38 am #653671HowardWell we still have the mobile problem:
I am going to make this a bit easier for us
What needs to be done on mobile:
https://www.rawassertions.com
Also
Can I use footer old fontawsome and header new fontawsome together or should I make them the newer one I put in secondary menu snippets?August 19, 2018 at 11:11 am #653675HowardDoes this have anything to do with it as its saved on my other site??
https://docs.generatepress.com/article/disable-secondary-navigation-mobile-menu/
August 19, 2018 at 2:56 pm #653765LeoStaffCustomer SupportYes the rawassertion site is using this method here:
https://docs.generatepress.com/article/disable-secondary-navigation-mobile-menu/August 19, 2018 at 3:10 pm #653770HowardI just installed those codes… mobile secondary menu still stays below after hitting primary; take a look now!
Howard
https://www.thesoundadvocate.comMaybe something with fontawsome 5??
August 19, 2018 at 3:55 pm #653787HowardChecking my simple CSS —- is this correct?
.site-header {
display: none;
}.inside-footer-widgets { text-align: center;.
Don not display site header code
.site-header {
display: none;
}.secondary-navigation .menu-toggle {
display: none;
}
@media(max-width: 768px) {
.secondary-navigation {
text-align: center !important;
}
.secondary-navigation ul {
display: block;
}
.secondary-navigation .sf-menu>li {
float: none;
display: inline-block !important;
}August 19, 2018 at 6:52 pm #653853LeoStaffCustomer SupportLooks like this block has some problems:
.inside-footer-widgets { text-align: center;. Don not display site header code .site-header { display: none; }
– It’s missing a closing bracket and an extra . after
text-align: center;.
– Then some texts that aren’t CSS
– Then a duplicated code that’s the same as the first block of code.
You can always run it through this site as well to check any syntax errors:
https://jigsaw.w3.org/css-validator/August 19, 2018 at 7:13 pm #653865HowardWill check… which text arnt CSS?
Which is the duplicated code?
This will make it much easier for me
ThanksAugust 19, 2018 at 7:24 pm #653873LeoStaffCustomer Support“Don not display site header code” isn’t CSS.
And this is the same as the first block of code:
.site-header { display: none; }
August 20, 2018 at 9:33 am #654597LeoStaffCustomer SupportTry this as your final CSS:
.site-header { display: none; } .inside-footer-widgets { text-align: center; } .secondary-navigation .menu-toggle { display: none; } @media(max-width: 768px) { .secondary-navigation { text-align: center !important; } .secondary-navigation ul { display: block; } .secondary-navigation .sf-menu>li { float: none; display: inline-block !important; } }
You can compare the two to see where the differences are.
August 20, 2018 at 10:55 am #654730HowardHi Leo
Inserted “exact” codes as above,,,,then deactivated — and reactivated SNIPPET BELOW: (fontawsome 5 also in 2nd snippets with CDN code from GP documentation)add_action( ‘wp_enqueue_scripts’, ‘generate_dequeue_secondary_nav_mobile’, 999 );
function generate_dequeue_secondary_nav_mobile() {
wp_dequeue_style( ‘generate-secondary-nav-mobile’ );
}
Still the same??????
Howardps fontawsome snippet
add_action( ‘wp_enqueue_scripts’, ‘tu_load_font_awesome’ );
/**
* Enqueue Font Awesome.
*/
function tu_load_font_awesome() {
wp_enqueue_style( ‘font-awesome’, ‘//use.fontawesome.com/releases/v5.1.0/css/all.css’, array(), ‘5.1.0’ );
}
only plugins activated currently are: GP premium,,code snippets, simple css and wp contact lite
Is the fontawsome code correct? I use the old fontawsome for the widget on bottom footer 4.7 -
AuthorPosts
- The topic ‘mobile menu display bottom with larger nav size’ is closed to new replies.