shane502
Forum Replies Created
-
Forum: Plugins
In reply to: [Gallery Lightbox] Checkbox displayed at top of pageThat is a toggle button to show the thumbnails at the bottom or to turn them off. There is a setting to show thumbnails at the bottom by default. With this option selected I do not have the checkbox to allow users to control it.
If you want it to stay as-is. You can hide it with this css:
#pbThumbsToggler { display: none; }
Forum: Developing with WordPress
In reply to: Reorder Editor Inserter BlocksHey! That did the trick! I was starting to think modifying the order of the existing inserter items was not possible. I also realized I had
$post
in my original call for some reason :facepalm: So I was also able to remove that as well after I noticed you only had 1 expected response in the filter hook.Thank You!
Here is the code I used for posterity (I only modified the naming convention and array style to my preference – in case anyone wants to know what my implementation was).
add_filter( 'block_categories', [ $this, 'kwa_block_category' ], 99, 1 ); function kwa_block_category( $categories ) { // setup category array $kwa_category = [ 'slug' => 'kwa-blocks', 'title' => 'KWA Blocks' ]; // make a new category array and insert ours at position 1 $new_categories = []; $new_categories[0] = $kwa_category; // rebuild cats array foreach( $categories as $category ) { $new_categories[] = $category; } return $new_categories; }
Forum: Plugins
In reply to: [Gallery Lightbox] Lightbox shows same image, but gets correct detailsI was actually able to fix it by rewriting some of the code after the “// Gutenberg Adaptive” comment in
glg-functions.php
to work with my grid gallery. Could not stand the WP Flex Gallery and it’s super weird wrapping and a thousand classes for something so simple as grid.Forum: Plugins
In reply to: [Gallery Lightbox] Lightbox shows same image, but gets correct detailsIt appears .glg-custom-wrap is grabbing the same photo href instead of the proper one in my img tag.
Forum: Plugins
In reply to: [Timber] Custom Post Type get_Preview renders instead of custom excerptI have added a custom ACF block to handle this for now. If anyone can shed some light onto why it works differently when called on different posts/pages – that would be great!
Forum: Plugins
In reply to: [Timber] Custom Post Type get_Preview renders instead of custom excerptAs a note, you may have to hard refresh to see the proper styles.
Yep this fixed it, sorry for the late reply back. Didn’t see it.
Thanks!