packdragon
Forum Replies Created
-
Forum: Plugins
In reply to: [Subscribe to Category] Make “All Categories” checked by defaultTurns out the above solution doesn’t actually work. Neither using “prop” nor click() actually activate it and cause the categories to be entered with the submission. It’s just a cosmetic checkmark. I have instead resigned myself to just adding instructions using the following:
//Add instructions to STC subscription. (function($) { $(document).ready(function() { $('.stc-categories').prepend('<div class="stc-instructions">*IMPORTANT: Select which categories you want to subscribe to below:</div>'); }) })(jQuery);I solved the problem! Turns out the title wasn’t actually being truncated. It was just hidden from view since a height was being set on the containers. Adding these styles to my child theme’s style.css fixed the problem:
.yarpp-thumbnails-horizontal .yarpp-thumbnail { height:auto !important } .yarpp-thumbnails-horizontal .yarpp-thumbnail-title { max-height:none }Forum: Plugins
In reply to: [Subscribe to Category] Make “All Categories” checked by defaultI was looking for this solution as well. If a subscriber just enters an email address and hits submit, they subscribe to nothing. Possible solutions:
1. Make a category selection a required field.
2. If no categories are selected upon submission, select all by default.In the meantime, I used jQuery to make that checkbox checked by default. I can foresee this might cause confusion if a user who is already subscribed wants to alter their selections, but nothing they can’t fix by clicking the appropriate boxes. I get a lot more empty subscriptions than I do users altering their selections.
For those who want to use my hackish solution…
1. Follow the instructions on this page for setting up a custom script file in your theme: https://stackoverflow.com/questions/11159860/how-do-i-add-a-simple-jquery-script-to-wordpress
2. In your script file, paste the following://Select All Categories by default so subscriber doesn't have an empty subscription (function($) { $(document).ready(function() { $('.stc-checkbox input').prop('checked', true); }) })(jQuery);Forum: Fixing WordPress
In reply to: Make sorting ignore “the” OR sort by slugThank you for your help. I think this is probably beyond the scope of my abilities, and I’ll probably have to hire a developer to figure it out for me.
Forum: Plugins
In reply to: [Featured Post Creative] Orderby “rand” doesn’t workI see, thank you for verifying! I appreciate that very much. There must be another plugin that is affecting the output of this one. I will look into it. Thanks again for your help!
Forum: Fixing WordPress
In reply to: Renaming Site Address breaks some functionalityThe problem seems to have resolved itself! It now redirects to the root directory without me having to transfer all the files there. I’m guessing it may have been a caching issue? Anyway, marking as resolved.
Forum: Plugins
In reply to: [Featured Post Creative] Orderby “rand” doesn’t workThank you for the reply! I tried retyping it manually but the problem still persists. The quotes don’t appear to be the curly quotes. When I pasted the code here into the forum, they got transformed into curly quotes, but that is not what is in the code. I would post a screenshot but I can’t seem to paste images here.
Forum: Plugins
In reply to: [Meow Gallery] How to sort gallery imagesI only use the gallery on the home page, so that first script would be just fine. And… it works great! Thank you so much. The gallery randomizes nicely now. Now to write that plugin review…
Forum: Plugins
In reply to: [Meow Gallery] How to sort gallery imagesThe code for listing the gallery in reverse order worked perfectly, but I’m having trouble figuring out how to do random order. I pasted this code into functions.php:
/* display Meow Gallery in random order */ add_filter( 'mgl_sort', 'random_mgl_sort', 25, 4 ); function random_mgl_sort( $ids, $data, $layout, $atts ) { if ( isset( $atts['random'] ) && $atts['random'] === 'true' ) { shuffle( $ids ); } return $ids; }The instructions say to add a parameter to the shortcode to activate it, but I’m using Meow Gallery as a block. I couldn’t find an option to randomize the gallery images within block settings. Do I have to use the shortcode instead?
Forum: Fixing WordPress
In reply to: Renaming Site Address breaks some functionalityThank you barnez for the suggestion! I was hoping to avoid that, but if it’s going to run faster anyway, I guess I should do it.
Also thank you George for the explanation.
Forum: Plugins
In reply to: [Meow Gallery] How to sort gallery imagesThank you so much for the fast response! That worked perfectly. Great tutorials. Meow Gallery + Meow Custom Links = Excellence. I’m happy now!
- This reply was modified 3 years, 7 months ago by packdragon.
Forum: Themes and Templates
In reply to: How to update Orange Techno theme to be 3.0 compatibleI’m so lucky, my web host took pity on my situation and decided to troubleshoot my template! They rewrote the outdated functions and now my theme works with 3.0. Fantastic service! If anyone needs a rock solid web host, http://www.logicx.com/ is the answer.