Forum Replies Created
-
AuthorPosts
-
November 10, 2014 at 11:21 pm in reply to: Enfold, WooCommerce Related products column number #349088
Hi Elliot,
That seems to work and it appears that ‘5’ is the maximum number of columns supported yes?
Sean.
That makes more sense.
Cheers.- This reply was modified 10 years, 2 months ago by raineysw.
In aditions to this latest version of Enfold doing the above, it also has some other consequences.
There is a common code snippet that ‘Event Calendar Pro’ users have been using which allows one to Change all instances of ‘Events’ to ‘Something’. i.e. We have changed every occurrence of “Event/s” to “Class/Classes”.
The snippet is here;// This example replaces "Event" with "Meeting" in all Tribe Plugins text // See the codex to learn more about WP text domains: // http://codex.wordpress.org/Translating_WordPress#Localization_Technology // Example Tribe domains: 'tribe-events-calendar', 'tribe-events-calendar-pro'... add_filter('gettext', 'theme_filter_text', 10, 3); function theme_filter_text( $translations, $text, $domain ) { // If this text domain starts with "tribe-" if(strpos($domain, 'tribe-') === 0) { // Replace upper case, lower case, singular, and plural $text = str_replace( // Text to search for array('Event', 'event', 'Events', 'events'), // Text to replace it with -- change this for your needs array('Meeting', 'meeting', 'Meetings', 'meetings'), $text ); } return $text; } add_filter('ngettext', 'theme_filter_ntext', 10, 5); function theme_filter_ntext( $translation, $single, $plural, $number, $domain ) { // If this text domain starts with "tribe-" if(strpos($domain, 'tribe-') === 0) { // Replace upper case, lower case, singular, and plural if( $number > 1 ) { $plural = str_replace( // Text to search for array('Events', 'events'), // Text to replace it with -- change this for your needs array('Meetings', 'meetings'), $plural ); return $plural; } else { $single = str_replace( // Text to search for array('Event', 'event'), // Text to replace it with -- change this for your needs array('Meeting', 'meeting'), $single ); return $single; } } }
But when applied to and the latest Kriesi Enfold theme is active it has a strange side effect that renders the WP-backend dysfunctional.
While solving the problem of replacing the “event/s” instances with another word, it also seems to remove the Published | Drafts | Deleted tabs from the pages, posts, event overview pages in the WP backend.
Again, this does not effect standard WP theme, nor did it effect earlier versions of Enfold.
I have tried applying the following code that Devin mentioned above and still experience the same issue.
require_once( 'config-events-calendar/config.php' );
This is making wordpress unusable.
I seem to recall that selecting the different post types would show further options beneath the edit window.
i.e. the “Quote” post style would reveal a box with Quote Author, Quote & Link. When i select Quote now, as with when i select any custom posts style, nothing happens.
The blog page is fine, it is the individual blog entries that are not.
In the first screengrab i posted you can see i have selected ‘Gallery’ as the custom post type and it has NO effect. I see no further options regardless of what custom post type i select.
The custom styles are listed as you can see in the scfreen capture above, but selecting them changes nothing.
Blog settings are as per screen grab below:
It still seems to be broken… are you sure it is fixed?
i removed add_filter( ‘wp_nav_menu_items’, ‘avia_append_search_nav’, 10, 2 ); from functions_enfold.php
seemed to do the trick.
Yep – i’ve changed my mind about it. Its too much work!
How about changing the non responsive version width. Can that be done easily?
-
AuthorPosts