I’d like public to see a restricted content message;
Subscriber sees a different restricted content message;
and Member sees full, unrestricted content.
I’ve tried a mix of shortcodes and page restrictions, but no success – possibly an issue with priorities.
Suggestions?
]]>when I create a user is it possible to take the email address as the user name rather than having a combination out of first and last name as the username?
Cheers!
]]>can this plugin be combined with automatewoo? Since we use automatewoo to build our email list and send automatic emails and we want to target our customers specific to their orders or account creation date with our newsletters.
best regards
exxis
where does the colour-value in full-calendar of an event originate in, that belongs to several categories with different colours?
I tried numerous combinations and it seems there is a strange kind of overrule of one main category. If I select this or one of it’s sub-categories for an event, its colour-value is applied to the calendar entry.
Of course it would make sense, if the colour-value of the primary category will be used.
Kind regards
]]>I have a Javascript Combination Disabled error. My disk usage is barely above 25% of the maximum.
See screenshot: https://snipboard.io/0Vb1WK.jpg
I already tried excluding all of the js files but the error is still there…
Was my Combined JS really disabled? I see that the green toggle is ON but there’s an error saying it’s disabled. I also checked GTMetrix result and it says the JS is still combined…
Thanks!
]]>As a courtesy, below please find a procedure for using the SG Optimizer (SGO) filters provided here. Procedure has been tested and works like a charm.
Specifically, procedure provided below applies to the SGO filters that call out the following variables or attributes:
$exclude_list[] = 'style-handle';
$exclude_list[] = 'style-handle-2';
and
$exclude_list[] = 'script-handle';
$exclude_list[] = 'script-handle-2';
Procedure:
(1) Install and activate the plugin “Code Snippets.” This plugin will allow you to use SGO’s filters without the need to modify your functions.php file directly. It will also allow you to add “snippets” (php code) to your website in a very simple way.
(2) After activating “Code Snippets,” add and activate the following snippet:
<?php
add_filter( 'script_loader_tag', 'cameronjonesweb_add_script_handle', 10, 3 );
function cameronjonesweb_add_script_handle( $tag, $handle, $src ) {
return str_replace( '<script', sprintf(
'<script data-handle="%1$s"',
esc_attr( $handle )
), $tag );
}
Above snippet obtained here.
(3) Once activated, the above snippet will generate a ‘data-handle’ (i.e., style or script handle) attribute to all of your enqueued style (css) and script (js) files.
(4) Add the needed SGO filter (snippet) to “Code Snippets.” For example, if you need to exclude a certain script (JS file) from minification, add the following SGO snippet:
<?php
add_filter( 'sgo_js_minify_exclude', 'js_minify_exclude' );
function js_minify_exclude( $exclude_list ) {
$exclude_list[] = 'script-handle';
$exclude_list[] = 'script-handle-2';
return $exclude_list;
}
Note: Do not activate the above snippet at this point.
(5) Go to the affected URL page of your website containing the style or script that needs to be excluded from minification or combination.
(6) After the affected URL page has been loaded, right-click on the page (any location) and select “Inspect Element.” Under “Styles,” enter and search for “handle” or “data-handle.” Click here. You will then see a list of all styles and scripts with a “data-handle.” The “data-handles” presented are equivalent to the “style-handle” or “script-handle” noted in SGO’s filters. Click here for an example of what the results looks like.
(7) Once you identify the affected ‘data-handle'(s) enter it/them into the above snippet (e.g., replace ‘script-handle’ with the ‘data-handle’ name you identified). In our case (example), replace ‘script-handle’ with “tribe-events-dynamic’
(8) After you’ve added all affected ‘data-handles'(s) to SGO’s filter or snippet, save and activate it. Your affected files are now excluded from minification or combination.
Note: It’s perfectly OK to deactivate or delete the ‘data-handle’ snippet presented in Step (2) above after completing Step (8) above.
Comments always welcome. Did the above work for you?
Cheers!
Notice: I do not work for (nor represent) SiteGround nor any affiliates.
]]>For example on my site – if you select a BRAND and then a PRODUCT that that brand doesn’t have, it will end up freezing and needing to be reloaded. I want to be able to allow customers to select a brand and then a type of product carried by that brand. It works great when a product fits the criteria but gives this issue when there is no result.
]]>