Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #202602

    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! Your VC is not the right version. It is updated but not the bundled version that comes with X. The version that comes with X is modified and optimized to work with X-shortcodes.

    regarding login, please provide us with FTP credentials as well via private message. This is in case we run into an error we’ll be able to revert and continue testing.

    Also with Regards to #1 you the customizer is under Appearance > Customize, in your back-end it would be “Weergave > Aanpasseen”

    #2 Did you replace the code that is initially there or did you just add it to the bottom?

    The other very important thing is you are running caching plugins. These should be cleared and switched off entirely when developing as they will interfere and cause issues.

    Let us know how that goes. Hope this helps – thanks!

    #202907

    linda_vRum
    Participant

    Hi guys,

    Thanks for the reply. I’ve updated VC to latest version.

    About the customizer: indeed it’s ‘aanpassen’. Because this is a very general word in Dutch I didn’t notice. Srry for that.

    Of course I added the code and not replace the original. Then I would loose my translation of the Blog title. So I tried again to replace the functions.php. First I’ve disabled the caching plugin. But still, the complete website turns white. Here is the complete code of my functions.php in child theme (included the code to disable popover):

    <?php
    
    // =============================================================================
    // FUNCTIONS.PHP
    // -----------------------------------------------------------------------------
    // Overwrite or add your own custom functions to X in this file.
    // =============================================================================
    add_filter('option_x_renew_blog_title', 'enable_blog_title_translation' );
    function enable_blog_title_translation ( $title ) {
    return __( $title, '__x__' );
    }
    // Data Attribute Generator (Popovers and Tooltips)
    // =============================================================================
    
    function x_generate_data_attributes_extra( $type, $trigger, $placement, $title = '', $content = '' ) {
    
      if ( ! in_array( $type, array( 'tooltip', 'popover' ) ) )
        return '';
    
      $js_params = array(
        'type'      => ( $type == 'tooltip' ) ? 'tooltip' : 'popover',
        'trigger'   => $trigger,
        'placement' => $placement,
        'title'     => $title,
        'content'   => $content
      );
    
      return x_generate_data_attributes( 'extra', $js_params );
    
    }

    Should this be working or is there missing a character or something? If this code is correct and it should be working I’ll send you my FTP credentials.

    Thanks!

    #203352

    Nabeel A
    Moderator

    Hi again,

    Please try replacing the entire code in functions.php with this one:

    <?php
    
    // =============================================================================
    // FUNCTIONS.PHP
    // -----------------------------------------------------------------------------
    // Overwrite or add your own custom functions to X in this file.
    // =============================================================================
    add_filter('option_x_renew_blog_title', 'enable_blog_title_translation' );
    
    	function enable_blog_title_translation ( $title ) {
    		return __( $title, '__x__' );
    	}
    // Data Attribute Generator (Popovers and Tooltips)
    // =============================================================================
    
    if ( ! function_exists( 'x_generate_data_attributes_extra' ) ) {
    	function x_generate_data_attributes_extra( $type, $trigger, $placement, $title = '', $content = '' ) {
    
    		if ( ! in_array( $type, array( 'tooltip', 'popover' ) ) )
    		return '';
    
    	$js_params = array(
    		'type'      => ( $type == 'tooltip' ) ? 'tooltip' : 'popover',
    		'trigger'   => $trigger,
    		'placement' => $placement,
    		'title'     => $title,
    		'content'   => $content
    	);
    
    	return x_generate_data_attributes( 'extra', $js_params );
    
    	}
    }

    Let us know how this goes!

    #203369

    linda_vRum
    Participant

    Hi,

    Thanks for your efforts but I still keep getting a blank screen when I replace the complete code.

    I think I’ll just delete the image titles…because all this trouble just to remove the popovers is crazy. Why is there no on/off button for popovers in customizer…would make life much easier 😉

    #203880

    Paul R
    Moderator

    Hi,

    We certainly appreciate the feedback! This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive. Thanks!

    #220754

    epicnick
    Participant

    Hi Guys,

    I created this topic under my collegue her account, now I took over this same website with my own account. I don’t know exactly what happened but translation of the blog title is not working (it did before) as well as some other strings. I did update ‘WPML Multilingual CMS’, maybe this has got something to do with it.

    With a piece of code in functions.php in the child theme we’ve made the ‘News’ (blog title) string available in WPML in the backend. Now, the string for ‘News’ is still available within the __X__ context within WPML > String Translation, also the translations are still there. These translations just don’t seem to reach the frontend. Also the same thing happened with some other strings, for example ‘Search'(the watermark in the searchbar) and ‘Read more’ (after every excerpt in the blog page).

    Could you guys help me with this or do I have to turn to WPML to solve this problem?

    Regards,

    Nick

    #220773

    epicnick
    Participant

    Ignore me, it just was a WPML setting!Radiobutton “Translate by WPML” in WPML > Theme and plugin localization was deselected after update!

    #221013

    Zeshan
    Member

    Glad to hear you’ve sorted it out! have a nice day! 🙂