FeliceAntonio
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Remove header with PHP functionI agree. I always try, when possible, to solve with PHP, but in this case I did not understand why the code I used did not work.
Forum: Themes and Templates
In reply to: [GeneratePress] Remove header with PHP functionWell, I found in this website (Step 3: Insert the Code into functions.php) a good solution, so I can work just on
functions.php
file of child theme, without touching custom CSS.
Practically, I add<style>.site-header, .site-footer{display:none;}</style>
in page where remove header and footer.
Always Thanks for your time, and GP Team too.
See you soon!- This reply was modified 3 years, 9 months ago by FeliceAntonio.
Forum: Themes and Templates
In reply to: [GeneratePress] Remove header with PHP functionHi @ejcabquina thanks for your time.
The page I’m working is this, and the ID is 6.// remove header add_action( 'after_setup_theme','tu_remove_header' ); function tu_remove_header() { if ( is_page( 6 ) ) { remove_action( 'generate_header','generate_construct_header' ); }}
- This reply was modified 3 years, 9 months ago by FeliceAntonio. Reason: added code
Forum: Themes and Templates
In reply to: [GeneratePress] How to create mobile friendly menu?@sahadatuk21 I think you solved, seeing on my mobile device. I too was interested in the horizontal menu for mobile, and I work out in this way.
Always thanks a lot to the GP Team support!- This reply was modified 3 years, 9 months ago by FeliceAntonio.
- This reply was modified 3 years, 9 months ago by FeliceAntonio.
Forum: Themes and Templates
In reply to: [GeneratePress] removing unnecessary side spaces on mobile?Hi Leo,
I was referring to Frank Smith’s site!!!
I see his site correctly on my mobile device.Forum: Themes and Templates
In reply to: [GeneratePress] removing unnecessary side spaces on mobile?Hello. On my mobile device, it’s fine. There is more space on the sides in the category archive, but the content looks good.
Forum: Everything else WordPress
In reply to: wp_get_attachment_image_src returns falseForum: Plugins
In reply to: [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] Manually add UA code?/* Describe what the code snippet does so you can remember later on */ add_action('wp_head', 'your_function_name'); function your_function_name(){ ?> PASTE HEADER CODE HERE <?php };
Forum: Themes and Templates
In reply to: [GeneratePress] Post title instead main titleThanks!
Forum: Themes and Templates
In reply to: [GeneratePress] Post title instead main titleHi David, that’s right, I would try this option for mobile (
wp_is_mobile()
).
Thanks.Forum: Plugins
In reply to: [Cookie Notice & Compliance for GDPR / CCPA] Adding AdSense not workingHi there,
if you use thefunctions.php
file in the child theme, this works:if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) { // Your third-party non functional code here }
as present in the homepage plugin.
Or perhaps do you use[COOKIE]your codex[/COOKIE]
?Forum: Plugins
In reply to: [Yoast SEO] Remove Producten from the Yoast BroadcrumbsHi there,
I don’t know if your necessity is just this:
How do I change the breadcrumb title?Forum: Themes and Templates
In reply to: [GeneratePress] Typography works just in previewI found the issue in Autoptimize plugin, I changed settings and checked
Also aggregate inline CSS?
Thanks.Forum: Themes and Templates
In reply to: [GeneratePress] Typography works just in previewDone!
Well, I have a 4 1/2 years old age 5″ and the notice is comprehensive even with the vertical display.