Nathan Hawkes
Forum Replies Created
-
Forum: Plugins
In reply to: [Event Tickets and Registration] Display tickets in a custom themeHi Jean,
I was afraid that it would be something simple, because it always is.
In editing the
single-event.php
template, I had removed the actions that the Event Tickets plugin required. They hadn’t done anything when I modified the template, so I never questioned it. I looked further into it as you said that the template could be overriden without modifying the ticket files, and discovered the issue there.Thank you for your assistance. I wouldn’t have known where to look had you not suggested it.
Nathan
Forum: Plugins
In reply to: [Event Tickets and Registration] Display tickets in a custom themeHi Jean,
Thanks for responding. I can confirm that the issue is with displaying the tickets on the theme rather than creating them in the admin area. I’m able to create tickets and RSVPs for events, but they won’t display on the front end.
The files I have do call
the_content()
, but for some reason they don’t seem to show the form, regardless of what settings I use. If I swap out the theme to one of the default ones (I tried Twenty Nineteen), it works fine, so I know it is something to do with my theme. I am using WordPress 6.2 and the latest versions of The Events Calendar and Event Tickets, and I am using the Classic editor, if that helps any.i had tried to use functions and classes as listed in the docs (pretty much just to see if anything would return something), and some did something, but some were coming back with fatal errors, so I don’t know if I have to set a namespace somewhere or call a class beforehand? I might not need to, but I’m really not sure what else it could be, so any advice would be much appreciated.
Forum: Plugins
In reply to: [Gutenberg] YouTube videos not embeddingBy the looks of things, I found the issue.
When I first asked, I hadn’t checked for issues with themes, so I switched back to Twenty Seventeen and found that it worked. In my custom theme, I have a function that removes certain tags from the header, of which one that was recommended to include (I forget where from though) was
rest_api_init
. Whilst the wp-json file seems to be displayed, thatremove_action
hook seemed to be the issue and the REST API wasn’t doing its thing. Once I’ve commented that out, the embeds work fine.Thanks for looking though. Just have to go through my other themes and remove that hook now.
Forum: Plugins
In reply to: [Secondary Title] Secondary Title in GutenbergHi @thaikolja,
I have no idea. According to https://make.www.ads-software.com/core/5-0/, none of the release dates for the 5.0 betas have even been decided. All we know is it’s going to be the first major release in 2018 but every milestone deadline is “TBD”.
Forum: Plugins
In reply to: [Secondary Title] Secondary Title in GutenbergThanks for your response @thaikolja.
With regards to being against the feature … me too, to be honest. I’m warming to it as an editor as time goes on, but I think that there are far too many issues that don’t appear to have been properly considered and it shouldn’t be added to the core, at least not for a while. However, it is still in development, so I guess we shall see what changes come in that time.
I don’t know if you or someone you know has posted on this, but I did find something referencing the plugin on the Gutenberg GitHub page – https://github.com/WordPress/gutenberg/issues/4472. The recommended solution thus far is to map a custom block, but that seems to come with its own issues.
There’s also https://github.com/WordPress/gutenberg/issues/2458, which talks about the
edit_form_after_title
hook. Apparently, the people behind Fieldmanager have a way to work with that, since it seems that particular hook is being removed.Other than that, I’m not sure where best to look. I’d guess that the Fieldmanager team would be able to help if they have a workaround for that particular hook. I’ll certainly have a look and see what more I can find.
I’ve just had a look with what I can, and it looks as though the issue is related to the value set for
$rtb_controller->form_rendered
. Even when I create a new, blank page and add in only that widget or that shortcode, even if it is the only content on that page, it won’t display the widget if I use PageBuilder. I have commented out the conditional forrtb_print_booking_form()
(file:includes/template-functions.php
, lines 37 – 41) and that seems to work fine, so I think the issue might lie somewhere around there.- This reply was modified 7 years, 10 months ago by Nathan Hawkes.
I don’t seem to have that issue with other drag and drop plugins though, only with Elementor. Like I said, I have used Page Builder from SiteOrigin and that works just fine for me.
Philip, for some reason I can open my WordPress site, I can open the Elementor editor and I can drag the elements onto the page, and I can even see the drop area activate when I hover the widget over it, but they won’t drop onto the page as they will in Firefox or Chrome, even when using the default Twenty Seventeen and Twenty Sixteen themes and even when Elementor is the only plugin that is active, so I can’t edit the page or make any changes. I can change widgets that are already placed in the editor, just not drop any new widgets into place. And that only happens in Vivaldi (out of the browsers that I have, at least). It’s very strange.
Also, I should make my other point clearer. When you open the Elementor editor, you can see the widgets in the side of the page, ready to be placed in the editor screen. You have the ten widgets at the top, then you have a section titled “General Elements”, which contains 18 widgets (on my installation at least). All 28 of these widgets have icons that depict what the widget does. The next section is called “WordPress” and contains the default WordPress widgets and ones that have been installed in addition to the default ones, each with a WordPress icon. What I want to do is create a group for widgets that I have created, with the heading “Theme Specific Widgets” or something like that, so that they can be differentiated from the other widgets that WordPress has. I would also like to iconize those widgets with an icon (probably using Dashicons or FontAwesome or another icon font, whatever is compatible) which will depict what the widget will do. I can do this in PageBuilder by adding a two values to the
__contruct
array. In mine, I have added them just after the “description” value. This gives me a tab in the Widget selector with an id of “my_group_name”, and there is a filter that I have called that assigns the title “Theme Specific Widgets” to that id, so that I can group them all together under that label. I wondered if there was something similar in Elementor so that I can separate my own widgets from those that are downloaded, as some of them are specifically built for my sites.- This reply was modified 7 years, 10 months ago by Nathan Hawkes.
Forum: Plugins
In reply to: [WPPizza - A Restaurant Plugin] Place order from single productActually, that is pretty much what I was hoping for. All I need to do now is modify the wppizza-loop.php file that is in my theme so that I have one layout for the “archive” page and one layout for the “single” page.
Thanks!
Thank you!!! I can get something like that working just by adding the styles to the appropriate places, but when I am looking at the active page, I can see the “active” CSS class on the list item. But, the pages I have already visited don’t have a “visited” class or something like that, and that seems to be the only part of this that I am missing – something that says “Hey, you’ve done this step! Good job!”, so those early steps that come up as highlighted in the link I posted then look like the same style as the steps I need to do in the future. Which is great to say “This is where you are now”, but not to say “This is how much you’ve done.”
Forum: Themes and Templates
In reply to: Remove "Uncategorized" from category listAfter a good few days of wrangling with it, I finally got the solution I wanted. It isn’t pretty or elegant, but I found that this works:
<?php $cats = ''; foreach ( get_the_category() as $cat ){ if ( count( get_the_category() ) == 1 && $cat->name == "Uncategorized" ) { $catsl = ''; $catsep = ''; } else { $catsl = '<p class="posted-under">Posted in:'; $catsep = '</p>'; if ( $cat->cat_name != "Uncategorized" ) { $cats .= '<a href="' . get_category_link( $cat->term_id ) . '" title="' . sprintf( __( 'View all posts in %s' ), $cat->name ) . '">' . $cat->name . '</a>, '; } } } $cats = substr($cats,0,-2); echo $catsl . ' ' .$cats . $catsep; ?>
Note that the Uncategorized category name appears to be cAsE sEnSiTiVe, as
"uncategorized"
didn’t work with me, but"Uncategorized"
did.Hi!
I don’t know if you’ve fixed this, but this seems to work for me to add a new wildcard:
function custom_wildcards( $string, $id ){ if ( strpos( $string, '%thing%' ) !== false ){ $string = str_replace( '%thing%', 'Replaced the thing', $string ); } return $string; } add_filter( 'dedo_search_replace_wildcards', 'custom_wildcards' );
Forum: Plugins
In reply to: [Delightful Downloads] Custom Outputs not displaying correct classesOk, just to update, as I think this hasn’t been implemented as I first thought – when I use the default name of
button
for my output, the button style goes in fine. Is this only for the default outputs?Forum: Plugins
In reply to: [Caldera Forms - More Than Contact Forms] Get a list of formsThank you so much! From the little experience I have had with Caldera Forms, I have to say it is by far my favourite system yet. I can’t believe I have not used it before, especially since I have been looking for a system exactly like this for a few months now. Thank you again!
Forget I asked this question. It’s already one of the preset options for data.