thasg
Forum Replies Created
-
Hi, Thanks for the speedy reply.
That would indeed prevent the fonts loading.The solution is simpler, though: shift line 45 in class-gallery-video-admin-assets.php that loads admin.tracking.css a few lines further up to line 30/31 (after fontawesome) so that it is together with the other styles that only load on the Gallery Video admin pages. Thereafter your branding assets show properly on the plugin page but are not loaded elsewhere in the WP admin.
There is a second instance where admin.tracking.css is enqueued on line 67 but as far as I can tell that is restricted only to the plugins page.
You might nevertheless want to consider consolidating your branding banner fonts as you currently load Nunito Sans from google, Nunito with the plugin and from google and Open Sans from google which is a fair amount for the advertising banners. As far as I can tell, you don’t have different language translations of your banners, so maybe a simple PNG in your desired branding font could replace all the webfonts? Just an idea.
- This reply was modified 7 years, 2 months ago by thasg.
Thank you Cais. You are absolutely right. It does work as you describe.
However, I couldn’t find this button on my installation. It turns out the button is there, but the German translation is misleading: it says “Album erstellen” (= create album) whereas it should says “Album bearbeiten” (= edit album). The same applies to the modal heading.
Your tip to place the albums inside a containing album and then to use that album id for the container_ids allows me to create the desired album list > album galleries > gallery structure and to click through from one to the next. Thank you!
For the titles, I’ve resorted to ‘faking’ them by creating a child theme page template for that page and extracting the slug parts from the page url and querying the db to get the corresponding album / gallery titles.
Maybe a “show album/gallery title” option is a potential feature for future template updates?