pinkhare
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: version 4.2.2 wp-emoji-release.min.js ERRORPlease fix this issue at the version 4.2.3. It’s a critical problem.
I use a SVG logo on every pages, and SVG logo is already a trend for websites(for retina and other flexibility reasons). The JS file causes 3 Javascript errors on every pages and prevent me from developing or using themes further.Forum: Plugins
In reply to: [Breadcrumb NavXT] Access to opt['hseparator']Thank you, John. But that filter did not work for my purpose, and I finally found another question and answer about this. So I have used “option_bcn_options” filter that you had answered there, then now it works!
Forum: Plugins
In reply to: [Menubar Widgets] 'current-page-item'-kind classes are not added!I can tell this plugin does work in 4.1.1 as well, because I’m actually using it. I’m developing my own theme, and I integrated this plugin to it as a default theme function. Very useful!
Thanks! I already asked the same question there yesterday.
Forum: Plugins
In reply to: [Options Framework] font preview feature please!I resolved this issue by myself. 🙂 But I want to let my theme use all of Google webfonts.
Forum: Plugins
In reply to: [Menubar Widgets] How could I make it to deactivate the other widgets?There’s a few more problems in this way that I didn’t write down on my screen shot(li elements consist of ‘menu-item’s & ‘menubar-widget’s, and they have no consistency for styling).
It seems that I could resolve this issue by editing or adding some pieces of code around here:
switch( $action ) {
case “activate-selected”:
// here, I want to slice selected widgets array for activating, so as to pass only the first widget element in widgets array. However, I cannot write appropriate & right code for you. Please teach me! 🙂
Forum: Plugins
In reply to: [Menubar Widgets] How could I make it to deactivate the other widgets?This is a capture.
Forum: Plugins
In reply to: [Menubar Widgets] How could I make it to deactivate the other widgets?Currently, this plugin allows me to activate any number of widgets per one sub item. But I want to activate only one widget per one sub item. That is, I hope when I select 3 widgets and click the save button, then only the first widget is activated. If I need 2 or more, then I could create two or more sub-menu items, not many different widgets in one sub-menu item. I want ‘1:1’, not ‘1:n’ (1: sub-menu item, n: widgets).
Forum: Plugins
In reply to: [Menubar Widgets] 'current-page-item'-kind classes are not added!I found the part which have occured the problem!!
It’s just “menubar_item_css_classes()” function.
I have worked around about 7 hours and just wrote this question, then I noticed that only the classes which begin with a prefix ‘menu-item’ are all added. So I searched by the word ‘menu-item’ in menubar-widgets.php file, and I found the function and commented it. Then the problem is gone!
But I want to know what the menubar_item_css_classes() function does.
Forum: Themes and Templates
In reply to: How to run my code only once in a custom menu walker file?No, it must be added inline in the walker php file directly, because it includes php ID-related code for every looped menu item elements.
So it must be inside the looped PHP file, and I want for the only <script> open/close tags to render only once but the contents inside should be looped. Could I get any variables related to this walker menu item loop from the core?my_custom_walker.php ==> it’s the looped file
class My_Walker_Nav_Menu extends Walker {
.
.
.<script> ==> only once
jQuery {
. . . this is the code that should be run on every items here . . .
jQuery(‘#menu-item-<?php echo $item->ID; ?> …
}
</script> ==> only once
.
.
.
}I have resolved this issue. Thank you!
Forum: Plugins
In reply to: [Options Framework] Is it possible to implement draggable bar?Forget this. I resolved it! Thanks.
OK, I have resolved this issue.
Forget about it.I added the sanitization code for my new option type, and it works really nice!
Thank you.
Forum: Plugins
In reply to: [Options Framework] target="_blank" not working on hyperlinkThank you so much, radgh!
Your code works and it does exactly what I want.
Thanks again!!What if this plugin would have the feature that let users upload @2x images and the plugin generates non-@2x images? Then @2x images have absolutely the bigger size and there’ll be no problem with creating the smaller images. If a user uploaded ‘potato@2x.jpg’ then the plugin generates ‘potato.jpg’ and the @2x versions only for wp-auto-generated thumbnail images. If needed, the plugin could check the uploaded file name whether it has the suffix ‘@2x’ or not.