MountainSmoke
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Gutenberg settings sidebar: default visibilityThanks for this! I wasn’t even aware of any fullscreen editing at all, let alone that it’s been set as the default view. The new setting even hides the WP admin left side bar too! No wonder the users were confused.
And that plugin works as described.
Forum: Plugins
In reply to: [Crop-Thumbnails] Crop sizes not availableHi this works for me. Had same issue as OP.
Forum: Plugins
In reply to: [WooCommerce] Why print_script_block_data used on every page?I have this concern as well.
In my case it’s only adding about 4kb on every page load, but it’s still mysterious and undesired just the same. Having it exist on WooCommerce-related pages is acceptable, but the problem is ALL non-WooCommerce pages seem to have this as well.
Similarily, there’s many other WooCommerce scripts loaded on every non-WooCommerce page as well.
This post is marked as resolved. is there a resolution?
Forum: Plugins
In reply to: [WP SmartCrop] How to use SmartCrop with div backgrounds?It would be nice if this was explicitly stated on the plugin homepage and website… saving trouble of install, trial-and-error, forum search, etc =(.
Nice plugin for regular image use, though!
Here’s a PHP method, from a comment left by Darren (do a find for “odd”):
To be used in a repeater template:
<?php // Check if $alm_current divides evenly if ($alm_current % 2 !== 0) { echo "odd template"; } else { echo "even template"; } ?>
$alm_current
and other variables touched on here:
https://connekthq.com/plugins/ajax-load-more/docs/variables/- This reply was modified 5 years, 5 months ago by MountainSmoke.
- This reply was modified 5 years, 5 months ago by MountainSmoke.
Wow, I had no idea, but CSS has a rule for this!
Example:
.alm-listing li:nth-child(even) { background: #CCC !important; } .alm-listing li:nth-child(odd) { background: #FFF !important; }
https://www.w3.org/Style/Examples/007/evenodd.en.html
- This reply was modified 5 years, 5 months ago by MountainSmoke.
FYI for Pro users, search “toggle” in the CVP Pro forum for some posts to get you get started.
Hi Tom,
I figured Gutenberg-dragging would work by now; it didn’t for me last time I looked. Dragging to the sidebar is a good option in some cases.
Anyhow, I’d still like to have the sidebar as default for new users just for a smoother/cleaner experience.
With the code above, do you see any problems? ie de-registering/re-registering a metabox, is it the cleanest way?
- This reply was modified 5 years, 10 months ago by MountainSmoke.
Ok, here’s a solution…
Note: If you’ve previously toggled the Layout metabox via ‘Screen Options’, this change may not work for you; you may still continue to see the Layout metabox at the bottom of the main editor view. Other users, e.g. new users, will see the metabox in the sidebar.
Add the following to functions.php:
add_action( 'add_meta_boxes', 'my_script_modify_gp_metabox', 999 ); function my_script_modify_gp_metabox() { $post_types = get_post_types( array( 'public' => true ) ); foreach ( $post_types as $type ) { if ( 'attachment' !== $type ) { // removes current GP metabox remove_meta_box('generate_layout_options_meta_box', $type, 'normal'); // adds new instance of GP metabox add_meta_box( 'generate_layout_options_meta_box', esc_html__( 'Layout', 'generatepress' ), 'generate_do_layout_meta_box', $type, // Controls metabox position. Alternatively, set 'normal' or 'advanced'. 'side', 'high' ); } } }
- This reply was modified 5 years, 10 months ago by MountainSmoke.
This topic needs to be revisited.
An Elementor template is a custom post type that happens to be labelled ‘template’, and they are all stored in the database just like other post types (page or post). It has nothing to do with ‘template’ in the classic sense, ie actual theme files.
When you view Elementor’s template listing (via “Elementor/My Templates”), you get a post listing with all the standard WP controls, including the duplicate link generated by this plugin. You can edit these posts in the regular WP form, but you won’t be able to do much. The intention is you go into the Elementor editor to do everything.
There’s a column called ‘type’ and your posts could be Header, Footer, Section, Global Widget, etc. I assume this is Elementor’s own internal type for their custom post type. In any case, you won’t see Elementor’s custom post type in the main WP sidebar, among your other custom post types.
Last time I checked this plugins’ duplicate functionality only partially works for Elementor templates; it is indeed possible. Just some double-checking is needed to see if the content copies over correctly. Perhaps a special database call needs to be made to grab page-builder content that exists outside the normal WP post scope.
Elementor has a huge following, and I haven’t seen any duplicate functionality for Elementor templates anywhere, so this plugin could be the first.
- This reply was modified 5 years, 11 months ago by MountainSmoke.
Forum: Plugins
In reply to: [Full Screen Menu for Elementor] Goes beyond 100% width on mobileApologies, this particular issue was due to another cause.
This is a subjective thing. It would also be very normal to NOT have the menu open when going back.
Ultimately, ideally it would be good to have such an option… to determine which style of back functionality you want.
@fourwhitesocks Yes, that is a normal situation. If people never click “Agree” (to cookie consent), they can still surf your website. This is preferred, because most people don’t want to scare away visitors who wish to remain anonymous. Why? Maybe anonymous users will change their mind when they see your valuable content. Or maybe they don’t want to be tracked by cookies (like Google Analytics), but they still would want to fill out your newsletter sign-up form (which, for GDPR, should have it’s own consent checkbox too). And so on.
There’s no legal implied-consent (e.g. user keeps scrolling) for cookies that deal with PII (personal identifiable information). GDPR specifically needs there to be a hard consent (the user literally clicking “Agree”). Where implied consent is allowed, is for cookies that have no PII. No special awareness has to be made to the user in that case.
If you wanted to actually stop the user from seeing *anything* on your website before consenting to cookies, well I would say that’s a special use case. To do that you’d probably want to setup a global welcome page that catches all first-time visitors and makes them do something (ie consent to cookies) before revealing your content. If you are creating such a barrier, and so desperate to know who your users are (to get their IP address at least), then you may as well just have a user registration form like any membership area of a website, which would be outside the scope of cookie consent plugins.
Anyways, welcome to consent hell! Eventually leeching into all aspects of life.
“Hello strange-person-I’m-meeting-on-the-street-potential-business-partner-or-lover! Nice to meet you! Do you consent to me shaking your hand?”
or
“I’d like to remove my previously-agreed-to consent for having my hand shook. I changed my mind about it, even though the hand-shaking event already took place. See you in court.”
or
“I didn’t consent to myself over-feeding myself at dinner. See you/myself in court.”
At least all of the lawyers losing jobs to AI have some new lines of work ie GDPR consultants.
@fourwhitesocks Maybe I’m wrong, but I don’t think IP anonymization should be handled by a cookie consent plugin. That seems like reaching into new territory, beyond the basic functionality of cookie consent. The plugin would have to develop crucial networking stuff like that? No way.
Forum: Plugins
In reply to: [Sticky Header Effects for Elementor] Page jumps when sticky bar appearsOk, on a fresh look it looks like the sticky feature is a factor. Sorry for not being more thorough.
Transparent header is off, and sticky header is on, the page jump happens.
- This reply was modified 6 years ago by MountainSmoke.