mark l chaves
Forum Replies Created
-
Hey @stephunique ,
Thanks for the excellent details. You’re right. It sounds like a CSS conflict.
Please try the CSS fix we’ve outlined in this help guide.
https://docs.wppopupmaker.com/article/544-your-popup-is-not-displaying-on-your-homepage#conflict
We also recommend you make both popups “stackable” and turn off the overlays for both.
We’ve got instructions on how to do that as well.
https://docs.wppopupmaker.com/article/196-display-multiple-popups-at-the-same-time
Remember to set your auto open trigger delays to 3000 ms and 10000 ms respectively (3 seconds and 10 seconds).
When that’s all done, you should have something like this.
https://share.wppopupmaker.com/6qu1KRn7
Let us know how that goes 🙏🏽
Hello @improvedline ,
Thanks for submitting a thorough description of the problem and sharing your website link.
I can reproduce the problem on your blog posts. I see only the Gravity Forms shortcode text when I manually launch your popup 7936. But, I can see the form display perfectly on your homepage as you sad.
Can you make sure Gravity Forms is allowed to load on your blog posts?
For example, I see
gravityforms.min.jsloading on your home page, but I don’t see it loading on https://jacuzzi.fr/blog/actualites/prenez-de-lavance-sur-vos-vacances-offres-exclusives-sur-les-spas-et-spas-de-nage-jacuzzi/.When a shortcode doesn’t work and you only see the text, that can mean the plugin for that shortcode isn’t loaded or the theme or another plugin is blocking it.
Forum: Fixing WordPress
In reply to: Show css styles in editorHi @stef1964 ,
I don’t see that filter, generate_editor_styles, in the docs.
Have you tried enqueuing your styles? Like this.
function load_my_cool_block_editor_styles() { wp_enqueue_style( 'my-cool-block-editor-styles', get_theme_file_uri('/assets/css/my-block-editor-styles.css')); } add_action( 'enqueue_block_assets', 'load_my_cool_block_editor_styles' );This works for me on the back end and front end.
Here’s an example CSS file I put in my theme’s /assets/css/ directory.
h2 { color: firebrick !important; font-family: 'Courier New', Courier, monospace !important; } h2:hover { transform: perspective(25rem) scale(1.2); transition: all 0.1s ease-in-out; }Read more here https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/applying-styles-with-stylesheets/
- This reply was modified 2 years, 1 month ago by mark l chaves. Reason: Typo
Forum: Fixing WordPress
In reply to: I’m getting white screen after I disable WP_DEBUGHey @carlos825 ,
I see this in the stack trace when I visit your site.
google_map_widget.php(147): register_widget('ink_widget_map')Can you try turning off any Google Maps widget or plugin to see if the error goes away? If it doesn’t, you might need to turn off all 3rd-party plugins and custom code (and maybe switch to the default WP theme), then turn them on 1-by-1 to see which one is causing the fatal error.
Hey @wordmax ,
Ah, I meant to say I’ll add a link to the snippet, 😬. Yep, that snippet you pasted into the thread is correct. It’s the same filter I used in the video at 2:34 (I customized the name of the PHP function in the video).
I used the Code Snippets plugin to add that filter to my test site. Check out our Getting Started With Custom PHP guide if adding PHP to your site is new to you.
https://docs.wppopupmaker.com/article/552-getting-started-with-custom-php
Yell back if I missed anything else 😌.
Hey @wordmax ,
Right now, if a block has any settings (from WP or a plugin), the block editor will show the settings tab first. It’d be great if we could change the tab order or choose which tab to show by default. Maybe in the future.
Luckily there’s PHP filter you can use to turn off the tabs completely and stack settings and styles in 1 column. This might work better instead of always clicking on the styles tab right away.
I recorded a demo that shows you how to turn off the block inspector tabs so at least you can get to the appearance controls faster.
https://share.wppopupmaker.com/P8ur0Nr2
The link to the code snippet is in the video description.
Holler if you have any questions.
Have a great weekend 🙂
Hi @danstramer,
That snippet is actually (almost exactly) based on GenerateBlock’s (GB’s) code (as mentioned in the Popup Maker doc and my snippet source code.
I didn’t see any other version in the GB docs that takes in a post ID arg. That means you’ll need to call that filter individually for each popup ID.
Here’s an example.
function my_generateblocks_do_content_63 ( $content ) { $post_id = 63; // Change to your Popup Maker popup ID https://docs.wppopupmaker.com/article/409-find-the-popup-id if ( has_blocks( $post_id ) ) { $block_element = get_post( $post_id ); // Where 'popup' is the custom post type for Popup Maker popups. // The original text from the GenerateBlocks doc is 'your_post_type' // https://docs.generateblocks.com/article/adding-content-sources-for-dynamic-css-generation/ if ( ! $block_element || 'popup' !== $block_element->post_type ) { return $content; } if ( 'publish' !== $block_element->post_status || ! empty( $block_element->post_password ) ) { return $content; } $content .= $block_element->post_content; } return $content; } add_filter( 'generateblocks_do_content', 'my_generateblocks_do_content_63', 10 ); function my_generateblocks_do_content_85 ( $content ) { $post_id = 85; // Change to your Popup Maker popup ID https://docs.wppopupmaker.com/article/409-find-the-popup-id if ( has_blocks( $post_id ) ) { $block_element = get_post( $post_id ); // Where 'popup' is the custom post type for Popup Maker popups. // The original text from the GenerateBlocks doc is 'your_post_type' // https://docs.generateblocks.com/article/adding-content-sources-for-dynamic-css-generation/ if ( ! $block_element || 'popup' !== $block_element->post_type ) { return $content; } if ( 'publish' !== $block_element->post_status || ! empty( $block_element->post_password ) ) { return $content; } $content .= $block_element->post_content; } return $content; } add_filter( 'generateblocks_do_content', 'my_generateblocks_do_content_85', 10 );Yes. It’s clunky.
I’ll ask the GB team if they can get us a version of their filter that also takes a post ID arg if they don’t have one yet. I can post a link to that thread here in a bit.
We already have Terms Order By set to BetterDocs Order. That’s the default, yes?
The “terms” the doc list under the category sidebar still *DO NOT* match the order of the docs on the category archive page.
Thanks anyway.
Hey @ninjateamwp,
Actually, I clicked on “Uncategorized” in the FileBird Folder field first (a few times). Nothing happened. That’s when I read that label to click on “the button” which I couldn’t find lol. Hence, my support thread.
BTW, I checked the browser console at the time and didn’t see any errors.
I just logged back in to try again. But now, that FileBird Folder field is completely gone. Oh well.
Thanks anyway!
Hey @expansion8933 ,
You can now choose to display the title or completely hide it in archives.
This guide shows you where to find those new settings.
Read about the hide setting in this section.
Give us a yell back if you have any questions 😉
Hey @lfmizukawa ,
This will be fixed in version 2.0 coming soon!
https://github.com/code-atlantic/content-control/issues/59
In the meantime, look at the workaround in the posted issue above or checkout a video demonstrating the workaround.
https://share.wppopupmaker.com/4guXX1xg
Cheers! 😌
Forum: Fixing WordPress
In reply to: Shortcode for displaying the user’s first name?Hello @silumant and @mugatea ,
The answer to your questions is a CSS exercise. I’d need to see your pages to tell you the exact CSS you’d need.
If you want to try yourself, here are 2 changes that might work:
display_tag="span"- Add the following CSS in your Appearance > Customize > Additional CSS.
.wporg-box { display: inline !important; }
You can also replace
wporg-boxwith any other class you want and even add a custom CSS class to your display tag in the code.Example:
$o = '<div class="my-cool-css-class">';$o .= '<' . $t . ' class="my-other-cool-css-class">' . esc_html__( $current_user->user_firstname ) . ''The beauty (and ugliness) of CSS is there are (too) many ways you can style your content. The good news is there are tons of docs on CSS (and of course AI chatbots) 😉
Good luck.
Forum: Plugins
In reply to: [GenerateBlocks] Post Template sizing ignored with query loop blockHey everybody,
We asked @joneiseman to use the recommended workaround below.
Adding content sources for dynamic CSS generation
Quoting directly from the doc.
“In some cases, you may be adding blocks to other areas not within your content area. In these cases, you need to tell GenerateBlocks about the existence of these other areas, so it know to scan them.”
I.e., that applies to popups, modals, slide-ins, or anything outside the “normal” content area.
Your filter works beautifully for us, e.g., https://gist.github.com/marklchaves/891586c49231889f86601f366d8c136c
@joneiseman also confirmed it works. Thanks again @joneiseman for that.
Unless I’m missing something, it’d be awesome if Tom’s reply be highlighted as the accepted fix for GenerateBlocks styling missing in Popup Maker popups.
https://generatepress.com/forums/topic/gpgbpopup-maker-issue/#post-2088153
Apologies, I don’t have access to reply to that thread or the OP on the .org Popup Maker forum.
Keep up the great work
- This reply was modified 3 years, 2 months ago by mark l chaves. Reason: Removed auto generated tag at the end of the post