Stolle7
Forum Replies Created
-
@sami excellent service, thank you for the update!
Mikko, thank you for the update and the clarification – as mentioned before your solution works perfectly, so thank you 🙂
- This reply was modified 7 years, 10 months ago by Stolle7.
Well that is weirdly surprising. Could it be a matter of caching or indexing gone wrong?
I have this setup on two websites, and when it occured on the first one after updating, I tried doing a search on the website which didn’t have the new version before updating Relevanssi.
Before updating it, it gave the result which was my intention, and after the update it simply returned the relevanssi excerpt twice.
As for your suggestion, then it works perfectly – thank you.
PS. what a wonderful response time you have – a lot of plugin developers in wordpress should admire that in my opinion! 😉
- This reply was modified 7 years, 10 months ago by Stolle7.
Sorry for the delayed answer @t-p. I’ve installed the Health Check plugin and it doesn’t show any errors. The health check can be seen here: https://imgur.com/a/QXCBS
@t-p Thank you for the quick reply – and sorry for my slow one.
- console.log(“test”); can hardly be bad code?
- I’ve just tested the editor on a fresh/clean installation of wordpress at another page, with no plugins and just the “Twenty Seventeen” theme active, and it still returns an error.
- How can the host affect the editor’s behaviour?
Forum: Plugins
In reply to: [WC Variations Radio Buttons] Overwrite plugin file from child theme?I had misunderstood the method to overwrite plugin files in a child theme and have now found the correct method.
I’ve succesfully overwritten the variable.php file by creating the following directory in my child theme:
/wp-content/themes/”{my theme name}”/woocommerce/single-product/add-to-cart/variable.php
Ah okay – Also a slightly far-fetched case, but surely nice to have.
I Will look forward to hearing from you regarding the “replies only default”. Personally I would like this to be a feature 😉
Thank you for the quick reply. With regards to the extra question: let’s Say that someone (person X) replies to original author (person Q) and a third person (person Y) replies to the reply of person X, then the original author (person Q) won’t receive a notification – at least not in my page it seems?
Thank you Bradvin! That worked like a charm.
For future reference for anyone who might need it, the following can disable the scripts and styles on pages in which they aren’t needed:
add_action( 'wp_enqueue_scripts', 'remove_foobox_scripts', 100 ); function remove_foobox_scripts() { if ( !is_page('57') || !is_page('test') ) { wp_dequeue_script( 'foobox-free-min' ); wp_dequeue_style( 'foobox-free-min' ); wp_dequeue_style( 'foogallery-core' ); $foobox = Foobox_Free::get_instance(); remove_action('foobox-free_inline_scripts', array($foobox, 'inline_dynamic_js')); } }Honestly I’m note sure if the best method is to hook the remove_action into wp_enqueue_scripts but it’s working on my site.
Alternatively it could just be placed outside the
function()and by using the same if statement.- This reply was modified 8 years, 4 months ago by Stolle7.
Thank you for the quick reply! And thank you for a nice plugin.
Embarrassing that I didn’t find that – it’s working now, thank you.
A quick note though: Before i wrote in here i tried to use <%SUBJECT%> which didn’t work, however from the FAQ I found the correct label which simply is <%subject%>
So in other words, dont use caps as this will prevent it from working (note to other users) 🙂
Forum: Plugins
In reply to: [Ninja Forms - The Contact Form Builder That Grows With You] label insideYou could assign the “label text” as “placeholder text” instead – however this will make the text-color light gray. This can be changed like this in css: https://css-tricks.com/snippets/css/style-placeholder-text/ – however this isn’t supported in IE9 and earlier versions or Opera Mini.
Another solution, although not a pretty solution, is to use the following css which will move the actual label down “above” the input field using a negative margin and z-index:
.nf-field-label { margin-bottom: -20px!important; z-index: 1; margin-top: 5px; margin-left: 5px; position: relative; } .ninja-forms-field{ padding-top: 25px; }- This reply was modified 9 years, 5 months ago by Stolle7.
Doesn’t seem like it, but if you dont mind using jQuery you can just make a placeholder like this:
jQuery("#nf-field-X").attr("placeholder", "your custom placeholder text goes here");Just replace the “X” with the relevant ID of the input field and the “your custom text goes here…”
- This reply was modified 9 years, 5 months ago by Stolle7.
This snippet was recently posted on slack.com by one of the developers, which might do what you are looking for.
add_filter( 'ninja_forms_i18n_front_end', 'my_custom_ninja_forms_i18n_front_end' ); function my_custom_ninja_forms_i18n_front_end( $strings ) { $strings['fieldsMarkedRequired'] = 'YOUR CUSTOM REPLACEMENT TEXT'; return $strings; }Of course you should replace the “your custom replacement text” with what you want – in your case, nothing at all – so just leave it like this (you can actually just copy the snippet below):
add_filter( 'ninja_forms_i18n_front_end', 'my_custom_ninja_forms_i18n_front_end' ); function my_custom_ninja_forms_i18n_front_end( $strings ) { $strings['fieldsMarkedRequired'] = ''; return $strings; }Note that i havent tested this, and i’m just copying it from a @kjohnson from https://ninjaformsdev.slack.com/messages/general/
Edit: by “starts” i mean “stars”. That just glipped 🙂
If you want all of the starts to completely disappear, you could just add this to your css:
.ninja-forms-req-symbol{ display:none; }Otherwise you can do it specifically to each field you want to remove it from, by targeting them in css like this (example):
#nf-field-X .ninja-forms-req-symbol{ display:none; }Of course you should change the “X” with the relevant number of the field.
- This reply was modified 9 years, 5 months ago by Stolle7.