Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Enfold 3.0 and Tribe Events Calendar 3.8 #332802

    That makes more sense.
    Cheers.

    • This reply was modified 1 week, 5 days ago by  raineysw.
    in reply to: Enfold 3.0 and Tribe Events Calendar 3.8 #332779

    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.

    in reply to: Enfold 3.9.1 Post Format types not doing anything #298092

    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.

    in reply to: Enfold 3.9.1 Post Format types not doing anything #298085

    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.

    in reply to: Enfold 3.9.1 Post Format types not doing anything #298068

    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:
    blog settings

    in reply to: Opengraph sharing problem; meta not added. #264478

    It still seems to be broken… are you sure it is fixed?

    in reply to: Remove Search from Menu in Enfold #136174

    i removed add_filter( ‘wp_nav_menu_items’, ‘avia_append_search_nav’, 10, 2 ); from functions_enfold.php

    seemed to do the trick.

    in reply to: Change overall page width #134868

    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?

    in reply to: Chrome only layout Issue #115482

    Excellent!

    Thanks heaps.

    in reply to: Chrome only layout Issue #115480

    I spoke too soon.

    It fixed Chrome but broke firefox.

    http://cl.ly/image/0k402I2v3345

    Cheers,

    Sean.

    in reply to: Chrome only layout Issue #115478

    Thanks Dude,

    Worked a treat.

    Sean.

    in reply to: Chrome only layout Issue #115476

    Hi Devin,

    I’ve made sure theme is current (1.4) and have re-saved settings, removed and replaced slider and still no luck.

    Here are the screenshots you requested.

    http://cl.ly/1g3x401e393i

    Cheers,

    Sean.

Viewing 12 posts - 1 through 12 (of 12 total)