Widget Logic

This topic contains 5 replies, has 2 voices, and was last updated by  Guust 6 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #399154

    Joy
    Buyer
    Post count: 1076

    I’ve used Widget Logic in other sites I’ve made, but this just isn’t working for me.

    How do I target package arrays? I would like to show a widget on package 1 and 2 but not 3 or 4.

    There’s plenty about geolocation specific widget help in the forum, but not much for package help beyond a single package type. Thank you.

    #399159

    Guust
    Moderator
    Post count: 29970

    You can target with CSS to hide or show a widget based on package ID on a detail page.

    Thanks

    #399160

    Joy
    Buyer
    Post count: 1076

    So, don’t use widget logic? I’m not understanding how I would target a package type from css on a listing page though…

    With the widget logic, this is an example I’ve seen, but it only works for a single package a a time. I know that widget logic can normally accept and/or conditionals.

    $post->package_id == 1
    #399161

    Joy
    Buyer
    Post count: 1076
    #399164

    Joy
    Buyer
    Post count: 1076

    Well…I tried it, but it’s not working.

    I added the code in my code snippet plugin, activated it, and targeted several of my package ID’s, but nothing changes. Purged my caches too and I’m on an incognito browser.

    The package ID’s aren’t even showing up in the body class tag. Not sure why…

    ….nevermind. I just figured out why. I was using the package order numbers instead of IDs. Thank you. 🙂

    #399172

    Guust
    Moderator
    Post count: 29970

    You’re welcome 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket