Jump to content


Photo

Hide qTranslate flags only for one category (Platform Pro)

qTranslate category platformpro platform

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1 eolic

eolic

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 09 October 2012 - 11:06 AM

Hi,

I'm using platform pro and qTranslate plugin. I'm translating all the posts but in one category, I only want to use one language, so I would like to hide the language flags, only for that category. Any idea of how can I do that?

Thank you very much!

#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 16555 posts

Posted 09 October 2012 - 11:24 AM

Hi,

Well you could hide them using CSS. However, they will still be shown in your page source code.

If you provide a link to the category and which languages you would like removed, I can take a look for you.

#3 eolic

eolic

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 09 October 2012 - 02:42 PM

I would like to hide all the flags from "blog" category Would be perfect to do it just using CSS, thank you very much.

#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts

Posted 09 October 2012 - 02:47 PM

Please use this CSS:

 body.category-blog #qtranslate {display: none;}


#5 eolic

eolic

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 09 October 2012 - 03:17 PM

Thanks Katrina but it's not working. I also tried with the category ID (54) and not working...

I added it at Custom Code area of Platform Pro.

#6 catrina

catrina

    Advocate

  • Members
  • 12345 posts

Posted 09 October 2012 - 03:27 PM

Try:

 body.category-blog.category-54 #qtranslate {display: none !important;}


#7 eolic

eolic

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 09 October 2012 - 03:35 PM

Nops, still not working.

thanks for your help.

#8 catrina

catrina

    Advocate

  • Members
  • 12345 posts

Posted 09 October 2012 - 03:46 PM

To continue working on the issue, you'll need to keep adjusting the selector. Perhaps try archive.category-blog or variations of that (as long as you use the category-blog or category-54 selector).