Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same here…

    However, I notice ‘std’ param only work with 'type' => 'wysiwyg', and with 'std' => esc_html__( 'your std text...', 'textdomain' ), as the example shown in the Meta Box website… But not with other types of fields. Help please!

    Hi @greghy

    I’ve the same issue and it seems I find a hack/solution for this!!
    First, Beware! This solution is not “update safe” because it modify the core file. However, the process is very simple : it consist of excluding a created class name in Zajax.js.

    Steps :

    1_ Open “zajax.js” in “plugins/zajax-ajax-navigation/js”. The code is all minified!! D’ont panic and copy/paste it in http://jsbeautifier.org/. Then, generate à clean unminified copy of this, and paste it back to “zajax.js”. save, and check your site : If nothing change, it’s all good.

    2_ Next, find the line 338 in your working unminified version of “zajax.js”. It should be this one :
    a = "a[href^='" + F + "']:not(a[href*='/wp-']):not([href$='/feed'])",

    3_ Just add your custom class to exclude (here I choose “.no-ajax”) like this :
    a = "a[href^='" + F + "']:not(a[href*='/wp-']):not([href$='/feed']):not(.no-ajax)",

    4_ Now, in your template, add the class “.no-ajax” to all the <a> you want to load “normally”!! Simple, it is?

    Suggestion for developers :
    In future versions, please add this feature in the admin panel. Its nothing to do, I think…

    Have a good day
    Bye
    Q

Viewing 2 replies - 1 through 2 (of 2 total)