WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
How to not display widget in more than 1 page (4 posts)

  1. azmi86
    Member
    Posted 1 year ago #

    Ok so i managed to not display a widget in 1 one of the pages that i do not want it to appear.

    So how do i do it if i does not want it to appear in multiple pages?

    !is_page('About') <- This is the code that i used so that it does not appear in the about page

    Thanks

    http://wordpress.org/extend/plugins/widget-logic/

  2. Jason Manheim
    Member
    Posted 1 year ago #

    ! is_page( array( 'About', 'Another Page', 'Etc.' ) )

  3. nestor86
    Member
    Posted 1 year ago #

    Hi, I have kind of the same problem.

    I have a web page which have multiple languages and I also have a different forms for each landing page of the multiple langages. I try to use 'Widget Logic' to assign one form in a determine landing page but for some reason I canĀ“t get it. I give you an example.

    Spanish Form ---> in a Spanish Landing Page
    Russian Form ---> in a Russian Landing Page
    English Form ---> in a English Landing Page

    the theme is that my web is build in a way that I have this kind of url: ZZZ/?lang=ru so when I going to make a code in widget logic such as:

    is_page('ZZZ/?lang=ru') the form appers in all the other landing pages (English and Spanish)

    Can you help with this trouble?

  4. Jason Manheim
    Member
    Posted 1 year ago #

    Try is_page( 'ZZZ' ) && ( $_GET['lang']=='ru' )

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.