Manuel Schmalstieg
Forum Replies Created
-
Forum: Plugins
In reply to: [Create Block Theme] Weird behavior of font management in multisite modeHi @foosantos ,
Thank you for your comments. The plugin is enabled per-site.
I suppose that with the Font Library feature announced on the WP 6.4 roadmap, this part of Create Block Theme will be handled differently in the near future.
Forum: Themes and Templates
In reply to: [Blockster] User added Additional CSS overridden by stlye.cssUpon further research, this is issue is due to the new loading order of styles in WP, and not limited to this theme.
- This reply was modified 1 year, 11 months ago by Manuel Schmalstieg.
If you override the font definition with CSS, and make sure that Inter isn’t applied anywhere, then the browser won’t load the file.
In my child-theme, I am doing this:
body, .child-posts, .entry-content, .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6, .entry-content p, .entry-content ol, .entry-content ul, .entry-content dl, .entry-content dt, .entry-content cite, .entry-content figcaption, .entry-content .wp-caption-text { font-family: 'Chose-Your-Own-Webfont', sans-serif; color: #444444; }
So if you applied a custom font, and the browser dev tools show that the “Inter” file is still loading, it probably means that your CSS rules aren’t applied everywhere on the page.
Forum: Plugins
In reply to: [Minimalistic Event Manager] Plugin Abandoned?Hello,
I am using the plugin on a few sites, but for now it hasn’t been updated to work with the Gutenberg editor. It must therefore be used with the Classic Editor plugin.
A way of moving forward without too much effort would be to replace it with ACF, use ACF to edit the custom fields created by the plugin.
Forum: Plugins
In reply to: [Lightbox with PhotoSwipe] Required data attributes on linkHere’s a piece of code I used to build the link with the data attributes:
$myprefix_img = wp_get_attachment_image_src( $id, 'full' ); echo '<a href="'.$myprefix_img[0] .'" data-width="'.$myprefix_img[1] .'" data-height="'.$myprefix_img[2] .'">';
Forum: Plugins
In reply to: [Minimalistic Event Manager] Excerpt in event listHi,
Thanks for using this plugin, I’m glad you like it!
If you want to add the post excerpt to the Widget, or modify the widget in some way:
You could create a functionality plugin with your own variant of the widget.
The widget code is here: https://github.com/ms-studio/minimalistic-event-manager/blob/master/widgets/event-list.php
You would need only two little tweaks:
– After line 245, add a value to the array:
"excerpt" => get_the_excerpt()
– After line 336, add the code that will output the excerpt. Something like this:<?php echo $mem_event_list[$key]["excerpt"]; ?>
I hope this helps!
Forum: Plugins
In reply to: [Minimalistic Event Manager] Can not edit start or end date for postHello,
Indeed this plugin hasn’t been updated yet for Gutenberg-compatibility, due to lack of time / ressources. ??
On my websites where the plugin is in active use, I currently apply the Classic Editor.
If you need this functionality for the Block Editor, I would advise to use ACF.
You could define the fields in ACF with the same Custom Field IDs, ‘_mem_start_date’ and ‘_mem_end_date’, so you keep the existing data that has been entered.
If you want to keep the “date processing” functionality of this plugin, you could basically copy it from here : https://github.com/ms-studio/minimalistic-event-manager/blob/master/functions/date-function.php
Best,
ManuelForum: Plugins
In reply to: [Minimalistic Event Manager] Output events as iCalenderHi,
You should first get the template to work, before tweaking the htaccess rewrite rules.
I added a bit of documentation here on Github: https://github.com/ms-studio/minimalistic-event-manager/wiki/Output-events-in-iCalendar-format
I hope this helps, but I don’t have time to produce more extensive documentation.
Forum: Themes and Templates
In reply to: [TextBook] Color overrides – Sass files?Indeed, it’s an exciting time, especially the new layout modules…
I’d like to add some more thoughts on this topic.
I have been helping through last week with the launch of a WordCamp site -https://2018.lausanne.wordcamp.org/ – using the WCEU 2017 base theme.
This lead my to study the SASS / CSS structure built by Lucijan Blagonic for this theme – see https://github.com/lucijanblagonic/wceu-2017/blob/master/source/assets/stylesheets/style.scss
The stylesheet refers to https://codeguide.co/ and I think those are indeed some great principles that could be adopted by WordPress theme authors.
Also, I found it helpful to be able to navigate the SASS architecture, to understand how the styles are organized. I find this much more difficult to do in a single file of 3800 lines of CSS.
I don’t have a perfect solution for this, but I think that the development setup of the theme’s stylesheets contains a lot of potential for learning and understanding. You don’t get that level of clarity by using search-replace, or cherry-picking CSS overrides through the browser’s inspector tool.
It would be great if that “stylesheet intelligence” could be somehow preserved when a theme gets released.
Forum: Themes and Templates
In reply to: [Pique] Use WP Core custom logo rather than JetpackHi Sacredpath, that great to hear!
Forum: Plugins
In reply to: [Minimalistic Event Manager] Ordering postHi Angelo,
As the moderators said, please don’t post login info on this forum. Also, I don’t have time available to look into issues with such detail.
That said, from what I can see on your test site, the custom ordering on the “Eventi” category page is actually working – see here:
https://test.redtulp.com/category/eventi/
In order to link to this page, the Menu builder allows you to use Categories as menu items.
I hope this helps. I won’t be able to give you more specific advice, sorry.
Best,
ManuelForum: Plugins
In reply to: [Minimalistic Event Manager] Ordering postHi Angelo,
That’s a great question. First, here is a working example of code for what you want to do:
function mem_category_order( $query ) { if ( $query->is_category('events') ) { $query->set( 'meta_key', '_mem_start_date'); $query->set( 'orderby', 'meta_value'); } } add_filter( 'pre_get_posts', 'mem_category_order' );
https://gist.github.com/ms-studio/b3919690c95daaa1503ea9a949a0767d
This example will order posts of the category with slug “events” by their start date.
Caveat: this Category Archive will now only show articles that have a start date.
Second, in the plugin’s wiki, there are some deeper considerations on how to handle archives and event dates:
https://github.com/ms-studio/minimalistic-event-manager/wiki/Implementation-strategy
Forum: Themes and Templates
In reply to: [TextBook] Color overrides – Sass files?Thanks for the insights! I was under the assumption that the theme engineers would continue to use the SASS source for maintenance and updates.
Also, thanks for suggesting CSS variables, I’m looking forward to start using them.
Forum: Plugins
In reply to: [Minimalistic Event Manager] Blog Post Meta Event DatesHi Liviucd,
Sorry, but I don’t understand your question. What do you mean with Blog Post Meta Data?
Please refer to the wiki for basic usage of this plugin : https://github.com/ms-studio/minimalistic-event-manager/wiki
Forum: Reviews
In reply to: [Gutenberg] Constantly improvingPS: tickets created on Github:
– Native Custom fields are not showing up: https://github.com/WordPress/gutenberg/issues/4742
– Interface for Custom Taxonomy is blank: https://github.com/WordPress/gutenberg/issues/4743