fokus3
Forum Replies Created
-
Forum: Plugins
In reply to: [Cache Enabler] Filters ‘bypass_cache’ not workingit’s prety simple what I did. I placed code into the functions.php like this:
add_action( 'bypass_cache', 'my_bypass_cache' ); function my_bypass_cache() { error_log("xxx"); return false; }I have to check if a cookie or if a special $_REQUEST variable is set. So the DONOTCACHEPAGE option is not feasible.
Forum: Plugins
In reply to: [Breeze Cache] Ajax injection doesn’t workdoes nobody has an idea/solution?
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] How to hook WPFCThis is a bit complicated to describe. I have some other software components which are not part of WordPress. So I want to take the generated WP content and modify it before its written to the cache… A WPFC filter function (hook) would be very helpful 🙂
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] issue with CDN and relative pathsyes that’s true that I’m using another plugin to minimize the CSS. The main reason therefore is, that when using the WPFC plugin it delivers the cached page only after the second call of the page…
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] issue with CDN and relative pathsForum: Plugins
In reply to: [Polylang] Very strange permalink errorI played a bit arround but I can do whatever I want. The first post permalink is empty. I also deactivated ALL plugins and disabled my function.php, so that the system is clear as much as possible.
When PL is activated the /%category%/ ist not shown in the very first interation of the loop.
Please can you help?
regards,
larsForum: Plugins
In reply to: [Caldera Forms - More Than Contact Forms] Disable Styles on JSThx for your help! Support is really great 🙂
Forum: Plugins
In reply to: [Caldera Forms - More Than Contact Forms] Disable Styles on JSoops, found the mistake – it’s a filter and not an action. Code looks now like:
add_filter( 'caldera_forms_render_form', 'deregister_select2_for_caldera', 11, 2 ); function deregister_select2_for_caldera( $items, $form ) { .... }works like a charme now
Forum: Plugins
In reply to: [Caldera Forms - More Than Contact Forms] Disable Styles on JSHi Josh,
I tried this and my code looks like this now:
function deregister_select2_for_caldera( $items ) { wp_dequeue_script( 'cfajax-baldrick' ); wp_dequeue_script( 'cfajax-core' ); wp_dequeue_script( 'cf-frontend-script-init' ); wp_dequeue_script( 'cf-frontend-fields' ); } add_action( 'caldera_forms_render_form', 'deregister_select2_for_caldera', 11 );So far so good – the JS files will be dequeued and not loaded anymore.
BUT – now I load these script manually inside of the footer. In the end the HTML code looks the same as when CF loads the scripts. But CF isn’t working anymore. It seems so, that the shortcode isn’t executed anymore now.
Did I made any mistakes. How can this be solved?
Thx for your assistance.
I found the mistake in the given example: by removing the {} from the “if”-statement it works fine now.
Forum: Plugins
In reply to: [Caldera Forms - More Than Contact Forms] Custom CSS class for entire formIs it possible to give the user the ability to set a class inside the shortcode, please. The ID version works fine, but due to its format it is a bit hard to manage …. 🙂
Forum: Plugins
In reply to: [Caldera Forms - More Than Contact Forms] Custom CSS class for entire formI guess you have misunderstood a bit 🙂
For example: I have a page and would like to put two forms on it. Now I would like apply
Form A -> class A
Form B -> class Band maybe later
Form C -> class A+B
As you can see this is not an unique ID but a simple class. Meanwhile I found a solution using this “caldera_forms_render_form_wrapper_classes” hook. But it would be so much easier (as used my many other shortcodes) to have something like that:
[caldera_form id=”CF55eaf1a323bf3″ class=”A”]
Or to have the ability to setup a custom class for the entire form via the management interface of CF.
What do you think about?
Forum: Plugins
In reply to: [Polylang] Show default language if no translation is availableYes, I did, but when using this it shows me not the translation if available. I also played arround with the query itself, but I get all posts (original or tranlsted), or only the german or only the english.
I played with this code and your provided function
`query_posts(array_merge($wp_query->query, array(
‘post_type’ => ‘post’,
‘paged’ => $paged,
‘cat’ => ‘-22,-544’,
‘lang’ => ‘de’,
‘suppress_filters’ => true
)));`Forum: Plugins
In reply to: [Polylang] NOT change the language depending on the contentah ok sorry, my mistake. Currently, I’m looking for a solution where the default language is shown whenever no translation is available. And here no working solution seems to exist :-/
Forum: Plugins
In reply to: [Polylang] Show default language if no translation is availableI have adapted the function to english. So, German is the fallback language.