Simon W?mmerfors
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Chaplin] Editor issues when using theme.json in child themeWell, turned out that the issue had to do with syntax in the theme.json of the child theme. The json file actually worked fine (I added padding support for some blocks, and the padding controls appeared) but the system seems fragile och apparently there was some kind of problem with the syntax. I never could isolate what is was, but when I copied and pasted some example code from another part of the Gutenberg documentation, and the altered it, suddenly the issues disappeared.
Forum: Themes and Templates
In reply to: [Chaplin] Editor CSS issues in WordPress 5.7Hi again
From what I can tell the list items in ordered and unordered lists have also lost some vertical margin in the editor.
Forum: Themes and Templates
In reply to: [Chaplin] Editor CSS issues in WordPress 5.7You’re right about the group block. I did a reset of the background color and applied it again and suddenly the padding is there. So clearly not a theme issue.
The problems with the quote block also seem to be Core related. After transforming it into two paragraphs and then back to quote again a number of times it sorted itself out.
I should have tested more before, sorry!
Forum: Themes and Templates
In reply to: [Chaplin] Mobile burger menu appears in the wrong colorI seem to have a similar issue with https://frimodigkyrka.se. On Safari for Mac the hamburger icon at first is the correct color (negative, white). When I scroll down the icon turns positive (black) just like it should. When i scroll back up though the icon don’t turn white again. Everything works fine in Chrome so it seem to be safari specific.
Forum: Plugins
In reply to: [The Events Calendar] Showing past events firstI had the same problem (showing all events, even past events) when I updated the plugin but my tribe_get_events query doesn’t contain
'eventDisplay' => 'upcoming'
at all.This is the code:
<?php // Ensure the global $post variable is in scope global $post; // Retrieve the next 20 upcoming events $events = tribe_get_events( array( 'posts_per_page' => 20, 'featured' => true, 'eventDisplay' => 'list' ) ); // The result set may be empty if ( empty( $events ) ) { // echo 'Sorry, nothing found.'; } else // Loop through the events: set up each one as // the current post then use template tags to // display the title and content foreach ( $events as $post ) { setup_postdata( $post ); ?>
- This reply was modified 5 years, 11 months ago by Simon W?mmerfors.
Forum: Plugins
In reply to: [The Events Calendar] ?? The Events Calendar 4.9Had exactly the same problem as @othmanjb. My tribe_get_events loop started to display all events, including past events, starting with the oldest. Restored the site from my backup and now everything works again.
- This reply was modified 5 years, 11 months ago by Simon W?mmerfors.
- This reply was modified 5 years, 11 months ago by Simon W?mmerfors.
https://www.sorbykyrkan.nu/program/
<span class="gce-list-time">[start-time]–[end-time]</span> <p class="gce-list-event gce-tooltip-event">[event-title] [if-description]<br><span class="gce-list-desc">[description]</span>[/if-description] </p>
The widget in the sidebar
<time> [if-not-all-day][start-custom format="D j/n H.i:"][/if-not-all-day] [if-all-day][start-custom format="D j/n:"][/if-all-day] </time> <span class="event">[event-title]</span>
Forum: Plugins
In reply to: Current term class when on single custom postSolved it with this:
<?php
global $post;
$taxonomy = ‘produktslag’;
$term_id = 0;
if(is_singular(‘produkt’)){ // post type is optional.
$terms = wp_get_post_terms( $post->ID, $taxonomy, array(“fields” => “ids”) );
if(!empty($terms))
$term_id = $terms[0]; //we need only one term id
}wp_list_categories(‘orderby=name&taxonomy=produktslag&title_li=¤t_category=’ .$term_id); ?>
Forum: Plugins
In reply to: [Meteor Slides] [Plugin: Meteor Slides] Conflict with CPT Featured ImageNevermind, I found the answer in the forum!