Forum Replies Created

Viewing 15 replies - 106 through 120 (of 681 total)
  • As far as I know, the guys @ iCanLocalize are quite open and helpful for any theme author wanting to WPML-ize.

    As of now Customizr is not wpml compatible and Nikeo (the theme author) is the only one who can give you an estimation in this matter.

    It is CSS code.
    When I loaded your website yesterday without the code I posted, the images were smaller than 270 x 250 under the .round-divs. So I could see their straight margins upon zoom. After I added this code, the images were rounded in IE11, like in any other browser.
    I now see them looking and working as they should, even when I zoom in or out. From what you say I understand IE11 renderes differently on different systems/devices. That says a lot.

    Again, from here, it looks 100% OK now, in all browsers.

    Well, yes.

    The conditional on the filters in the current version is:

    if ( current_theme_supports( 'qtranslate' ) && is_plugin_active('qtranslate/qtranslate.php') ) {
    // filters here...
    }

    and… qtranslate/qtranslate.php is not an active plugin when it is replaced by mqtranslate. With the right conditional it works flawlessly.

    You have a point. I managed to get the $page number (hence offset the query), with:

    add_filter('redirect_canonical','disable_redirect_canonical');
    function disable_redirect_canonical($r_url) {
    	if ( tc__f('__is_home') ) return false;
        return $r_url;
    }

    and than get the $page query var, but I also need to rewrite a manual pagination replicating the default one of the theme. It can be done, but it beats the point. It lacks simplicity and elegance.

    I guess the solution that inserts a foreign page into the front blog page is simpler overall. I still don’t like that I don’t have the “Edit page” in admin bar, but I guess that can be added too, with specific targeting… Not clean, not elegant, since to do it thoroughly would mean to do it both ways (the preview changes and view page links in backend)…

    Nikeo might enlighten us on this one. πŸ™‚

    Interesting. You didn’t even bother testing it. Well, I guess you’re right and I was wrong…

    …to do it.

    My bad. Won’t happen again.

    Here. Working pagination.

    Here it is.
    d4z_c0nf’s solution, added as a Customizr option.

    Put this in functions.php of your child theme. (And yes, you need to disable the code above, as I have added it in these functions)…

    add_action('after_setup_theme', 'customizr_theme_loaded');
    function customizr_theme_loaded() {
    	if (!function_exists('tc__f'))
    		return;
    	add_action( 'customize_register', 'tc_boh_controller');
    	if (true == tc__f( '__get_option' , 'tc_boh_check') )
    		add_action('__after_loop', 'tc_display_boh');
    
    }
    function tc_display_boh() {
    	if (! tc__f('__is_home') ) return;
    	ob_start();
    	query_posts('is_posts_page=true');
    	if ( have_posts() ) :
    		while ( have_posts() ) :
    			the_post();
    			do_action ('__before_article'); ?>
    			<article <?php tc__f('__article_selectors'); ?>>
    				<?php do_action( '__loop' ); ?>
    			</article>
    		<?php do_action ('__after_article');
    		endwhile;
    	endif;
    	remove_action('__after_loop', 'tc_display_boh');
    	do_action ('__after_loop');
    	wp_reset_query();
    	echo ob_get_clean();
    }
    
    function tc_boh_controller() {
    	global $wp_customize;
    	$wp_customize->add_setting('tc_theme_options[tc_boh_check]', array(
            'default'        => false,
            'capability'     => 'edit_theme_options',
            'type'           => 'option',
        ));
    	$wp_customize->add_control('tc_boh_check', array(
            'settings' => 'tc_theme_options[tc_boh_check]',
            'label'    => __('Display blog on static front page'),
            'section'  => 'tc_frontpage_settings',
            'type'     => 'checkbox'
        ));
    }

    You just check “Display blog on static front page” and… it works. I did not build the js for auto refresh on change/save in order to keep it simple, but whoever wants instant preview, here’s how to do it.

    As a bonus, the text above the post list is in the home page, so you can easily change it with “Edit Page” in admin bar. And pagination works, ofcourse πŸ˜‰

    Just pulled and committed mqtranslate support to Customizr github.

    This basically means the code above will be unnecessary starting with next theme release, as it would double filter the slider texts.

    @amcneil, if you still need it, here’s the code:

    #main-wrapper .round-div {
    	border-color: #0088cc;
    }

    CSS rule of thumb: id beats class.

    I believe you used his second solution, not the first one. The first one should have problems with posts pagination. That was the “query switching solution”.

    That’s what query_posts() does. It replaces (switches) the main query.

    And now I just noticed he said it’s good only if you don’t need pagination. Initially I only looked at the code and I thought he didn’t know this.

    @d4z_c0nf: In principle, I don’t agree with having to edit a page in order to modify another (the include a hidden page solution), but I’m afraid it’s the only one that works right. I have this hunch your query switching solution will gracefully fail on pagination.

    I don’t see any artefact in IE11, on W7 Ultimate, fully updated. I thought you’re referring to the fact that the image margins are uncovered upon hover and it looks cut. But I don’t see any artefact in IE11.

    And yes, you could use it with rdell’s solution, in the sense that you could place his code inside the media query from mine, for disabling it on screens narrower than 980px.

    For the IE10 links problem, here‘s a snippet.

    @media all and (min-width: 980px) {
    	.ie .thumb-wrapper img {
    		width: 270px !important;
    		height: auto !important;
    	}
    }

    should fix it.

    The theme supports qtranslate and polylang translations out of the box. If you use mqtranslate, you need to add this to your child theme’s functions.php:

    if ( is_plugin_active('mqtranslate/mqtranslate.php') ) {
    	add_filter( 'tc_slide_link_url' , 'tc_url_lang' );
    	add_filter( 'tc_logo_link_url' , 'tc_url_lang');
    	add_filter( 'tc_fp_link_url' , 'tc_url_lang');
    	add_filter( 'tc_slide_title', 'tc_apply_qtranslate' );
    	add_filter( 'tc_slide_text', 'tc_apply_qtranslate' );
    	add_filter( 'tc_slide_button_text', 'tc_apply_qtranslate' );
    	add_filter( 'tc_slide_background_alt', 'tc_apply_qtranslate' );
    	add_filter( 'tc_fp_text', 'tc_apply_qtranslate' );
    	add_filter( 'tc_fp_button_text', 'tc_apply_qtranslate' );
    	add_filter( 'tc_slide_title_length'  , 'tc_remove_char_limit');
    	add_filter( 'tc_slide_text_length'   , 'tc_remove_char_limit');
    	add_filter( 'tc_slide_button_length' , 'tc_remove_char_limit');
    	add_filter( 'tc_fp_text_length' , 'tc_remove_char_limit');
    }

    Now you can add syntaxes like

    [:en]English text here[:de]Deutsch text hier[:fr]Texte franΓ§ais ici

    in your slider titles, descriptions and buttons and also (most importantly) they do not have a char limit anymore).

    You only need the above code for mqtranslate (a newer fork of qtranslate). If you use qtranslate you don’t need those filters, they’re on by default, the moment you activate qtranslate.

    As for polylang, I don’t know the details, I just know it works with Customirz. If you use it, hopefully someone will share some insight if you can’t make it all work.

    Note for @nikeo: I switched most of my Customizr websites from qtranslate to mqtranslate and I believe more and more people are making this switch everyday, as qtranslate is no longer maintained and needs a few manual tweaks on every WP update. So I guess adding an || is_plugin_active(‘mqtranslate/mqtranslate.php’) to the qtranslate conditional for the filters above would be a very welcome addition in some future Customizr update. Thank you.

    Can you please provide a link to the page you’re referring to?

    You most probably have a virus on the device that displays those nasty ads. They are not due to the theme. They are most probably added by your device after the page has been rendered by the server.

Viewing 15 replies - 106 through 120 (of 681 total)