Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Dorvalla

    (@dorvalla)

    Figured it out, never mind. $CPT just contains the names as key.

    function moods_add_post_templates_support( $cpt ) {
    	
    	$cpt['mood'] = 'moods';
    	return $cpt;
    } 
    add_filter( 'dslc_post_templates_post_types', 'moods_add_post_templates_support' );

    the $cpt[‘xxx’] <– needs to be named after the cpt name, and the value is the name of the label.

    Thread Starter Dorvalla

    (@dorvalla)

    Hi Sunny, thank you for the reply. I took my time to google all this (this is new information for me and not sure how to implement this).

    So does this technically mean i need to add something in the htaccess / remove something from the htaccess?

    And since this is a security measure of the browser, shouldn’t you guys made the changes for it in the code? Or do I see this wrong?

    • This reply was modified 7 years, 9 months ago by Dorvalla.
    • This reply was modified 7 years, 9 months ago by Dorvalla.
    Thread Starter Dorvalla

    (@dorvalla)

    I deactivated all plugins, except salesfeed, and still the popup remains, i ‘d like to rule out any conflicting plugins, since we still get them.

    Regards

    Joost

    • This reply was modified 8 years, 5 months ago by Dorvalla.
    • This reply was modified 8 years, 5 months ago by Dorvalla.
    Thread Starter Dorvalla

    (@dorvalla)

    We narrowed down the conflicting part, which should be added to your list (and to the list of MonsterInsight’s) as we discovered the Google Analytics plugin from them is conflicting and causing our clients site to bug.

    I ‘d like you guys to confirm this as well.

    It’s Google Analytics by Monsterinsight (used to be Yoast) Their plugin page

    Thread Starter Dorvalla

    (@dorvalla)

    For now, i solved it with a bit of javascript, and it will hide the flag depending on the pagbe I am. For those intrested in the code.

    var s = window.location.pathname;
    	var page = s.split("/");
    	p=page[4];
    	i=page[3]
    	var pagina = p=page[4];
    	var pag = i=page[3]
    
    	if (pagina === "amsterdam" || pag === "amsterdam")
    	{
    		document.getElementsByClassName('lang-pl')[0].style.display = "none"
    	}
    	else if (pagina === "gdynia" || pag === "gdynia")
    	{
    		document.getElementsByClassName('lang-nl')[0].style.display = "none"
    	}

    the double check on the parameter is because the standard language is being removed from the link, this causes a different ammount of query items returned. So when I set it to english which is the main language, it changes. Now i see if i can force it to show automaticly in a certain language (polish page to polish, dutch page to dutch)

    Anyway, thanks for the help Gunu ??

    Thread Starter Dorvalla

    (@dorvalla)

    The thing is that it renders the Polish flag useless on the Dutch page. Is there a way I can hide that? (I left the Polish content blank on that page, but if i click on the polish flag it renders a page with zero content which is not how it should be displayed.) I am just seeking a way to hide the Polish flag than. So I was hoping if I could acces the function qtranxf_generateLanguageSelectCode('image') to modify the array so when I am on a certain page the flag wont appear.

    I hope you understand what I mean.

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