Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Hide Language web link set from Portal Home page

Posted on by

Hi Team,

I'm trying to hide Language web link set from Portal home page but I do not find this web link from Primary web link set. Could you please tell me how to hide this. 

pastedimage1590576532415v1.png

Thanks,

Leo

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Hide Language web link set from Portal Home page

    The code responsible for rendering the language dropdown is in Liquid, so my guess is that your commenting tag is being ignored

    can you try removing the code between lines 105 and 115 completely? or using the liquid comment tags:

    {% comment %}

    {% endcomment %}

    sorry about the delay, I am not very active in this forum, please refer to powerusers.microsoft.com/.../PowerAppsPortals for Power Apps Portals questions

  • Muteeb Javed Profile Picture
    Muteeb Javed 25 on at
    RE: Hide Language web link set from Portal Home page

    Hi I’m having same issue and I’m not able to see this code

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Hide Language web link set from Portal Home page

    did you clear the cache?

  • LeoFernandas Profile Picture
    LeoFernandas on at
    RE: Hide Language web link set from Portal Home page

    {% assign homeurl = website.adx_partialurl %}
    
    
    
    {% substitution %}
      {% assign current_page = page.id %}
      {% assign sr_page = sitemarkers["Search"].id %}
      {% assign forum_page = sitemarkers["Forums"].id %}
      {% if current_page == sr_page or current_page == forum_page %}
        {% assign section_class = "section-landing-search" %}
        {% if current_page == forum_page %}
          {% assign section_class = "section-landing-forums" %}
        {% endif %}
        
    {% if current_page == sr_page %}

    {% editable snippets 'Search/Title' default: resx["Discover_Contoso"] %}

    {% include 'Search' %} {% endif %}
    {% endif %} {% endsubstitution %}

    Thanks for letting me know this. I've commented out the whole block where language is included but i'm still able to see language dropdown.

    Regards,

    Leo

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Hide Language web link set from Portal Home page

    it's not Home Web Template.. it's the Header Web Template

  • LeoFernandas Profile Picture
    LeoFernandas on at
    RE: Hide Language web link set from Portal Home page

    Hi Oliver,

    Thank you! I'm able to see only the below code in Home web template and couldn't see the line of code you have highlighted in below code. Could you please tell me where I can deactivate web language.

    {% assign forums_sm = sitemarkers["Forums"] %}
    
    
    
     
    {% editable snippets "Home/MostPopularHeading" default: resx["Most_Popular"] %}

    Thank you,

    Leo

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Hide Language web link set from Portal Home page

    You should only see that if you enable multiple languages for your Portals

    you can either remove the additional "Website Language" record or change the "Header" Web Template removing or changing the condition highlighted:

    7115.language.PNG

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

    We highly recommend users to migrate to PowerUsers community for new Portal questions:

    powerusers.microsoft.com/.../PowerAppsPortals

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans