Daniel
Forum Replies Created
-
Forum: Plugins
In reply to: [Flashcard Plugin for WordPress] Upper caseHi Liang and fredwrite,
Thanks, Liang. This update works fine. Can I recommend a small addition?
I added one tweak to the flashcard.css file:
.flashcard-container li>div>div{ display: block; padding: 10px; line-height: 100%; }
The “line-height” line above is the only line I added. If your flashcard text is longer and extends on to a second line, this squashes it up closer to the first line so you can fit more on your flashcard.
… hope my last message was clear. Happy to explain in more detail if needed.
Hi fredwrite,
I had the same problem as you with too much blank space. I made the following tweak to my theme’s style.css file:
h2 { margin: 0.7em 0; /* drlc changed from – margin: 1.4em 0; – to reduce blank space at top of flashcards */ line-height:1.2; /* drlc – added to reduce space between lines on flashcards */ }
Reducing the “line-height” setting might also be useful for you if your flashcards ever continue on to a second line.
You can see an example on my website here:
Forum: Plugins
In reply to: [Flashcard Plugin for WordPress] Not workingI got this plugin working, but only by removing the “Ninja announcements” plugin.
I’m not an expert, but the problem seems to be with the way the Flashcards plugin is loading up jQuery, specifically these lines:
/* * enqueue all the javascripts */ wp_enqueue_script('jquery1.7', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js'); wp_enqueue_script('jquery-css-transform', WP_PLUGIN_URL.'/flashcard/rotate3Di/jquery-css-transform/jquery-css-transform.js', array('jquery1.7')); wp_enqueue_script('rotate3Di', WP_PLUGIN_URL.'/flashcard/rotate3Di/rotate3Di.js', array('jquery-css-transform')); wp_enqueue_script('flashcard', WP_PLUGIN_URL.'/flashcard/flashcard.js', array('rotate3Di'));
I tried to get the plugin to load jQuery straight from WordPress. When that didn’t work I then changed “jQuery1.7” to “jQuery1.10.2” in the code above (jQuery 1.10.2 is the version WordPress 3.6 comes pre-installed with). But this didn’t work either.
Basically, jQuery is being loaded up more than once and it shouldn’t be.
Anyone with a bit more expertise able to help? ??