ThemeShaper Forums » Thematic

[closed]

Page Top Widget and Widget Logic Display Issue

(21 posts)
  • Started 10 years ago by awarner20
  • Latest reply from Chris
  • This topic is not resolved
  1. Hi folks,

    Not sure if anyone else has run into anything similar, or can test on their own setup, but something strange is happening I'm trying to solve.

    I have created a page named "Home"and set that page to be the "Static Page" under the "Reading" settings. I then went into Widgets and created a text widget that I only want to appear on the main page. So, I am using Widget Logic and the conditional of is_front_page() to insert this text widget into the "Page Top" aside area. This works great, my widget shows on the top of the front page with the Widget title, content, and the standard Thematic border around it.

    However, when I go to any other page...part of the widget is showing. What I mean is that you can see the standard Thematic border without the widget title or the widget content. Just the border. Would you agree this is strange?

    Can anyone else do a quick test to confirm this behavior? Unfortunately I can't list the url currently, it's a locked down client site.

    EDIT: I am on version 0.9.5 stable.

    Posted 10 years ago #
  2. amygail
    Member

    I don't know if this is related, but I think it is

    I added a page-top widget (also used widget logic) - then removed it. After that, I was also left with a 'blank' (empty 'box' with a border) widget area on all my pages.

    I took the lazy girls out and created a new page.php without the page-top -so I don't have a link to post either.

    Also on 0.9.5 stable.

    Posted 10 years ago #
  3. Thanks for confirming this amygail, I knew I could count on you:)

    Posted 10 years ago #
  4. It's because the widget area technically isn't inactive. Ran across this a while back, and the plugin author knows about it:
    http://wordpress.org/support/topic/260660

    I'm not really sure if it can be fixed through the plugin though.

    Posted 10 years ago #
  5. amygail
    Member

    Ahhh - thanks for solving the mystery

    Posted 10 years ago #
  6. Hey, thanks for letting us know Justin. This is a real bummer. I was counting on this functionality to add announcements to my site's main page when necessary.

    I'll have to walk away from it for now and look for another solution when I finish more important tasks with this current site.

    Posted 10 years ago #
  7. amygail
    Member

    awarner20 - in the meantime, can you just filter out the 'page_top' widget area on all the pages except your main page?

    make sense? maybe?
    too hot for sense making..

    Posted 10 years ago #
  8. Hi,

    first of all .. Justin is right. This can't be solved by only changing the plugin.

    But this doesn't mean that it can't be changed at all :)

    Let me check a couple of things first.

    Chris

    Posted 10 years ago #
  9. Ok .. back from a first test ..

    Need to explain the behavior of Thematic first. Thematic checks for the existence of widgets in a widget area. This is done by using our own function is_sidebar_active(). If this function returns TRUE we echo some opening markup and call dynamic_sidebar(). At this point Widget Logic or Widget Context start to work.

    I could integrate a filter hook to is_sidebar_active() .. that's the easy part

    .. an optional filter would check if the widgets will display .. that's the part that needs to be tested. Don't know if the above mentioned plugins have a use-able functionality already built in.

    If this works the widget area's CSS markup wouldn't show up on condition FALSE :)

    Chris

    Posted 10 years ago #
  10. Hi Chris and others on this thread. I just ran into this issue again, and unfortunately, it's really limiting Thematic's widget features (as used with Widget Logic).

    Has anyone come across a solution or work-around for this?

    Posted 9 years ago #
  11. Hi Adam-

    I quit using widget_logic altogether in favor of conditionally displayed widget_areas made available by the recent thematic svn. This method can make for a lot of widget areas in the admin>appearance>widgets with complex set ups and makes a little more work in the functions.php but it's worth it for a plugin-free solution IMO.

    http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas

    -Gene

    Posted 9 years ago #
  12. Hi Gene,

    Although a plugin free solution would probably be wise on my part, I hesitate to take that step on the site in question. It's a live site and I'm hoping for a less complex solution.

    I also need to setup a proper test site;)

    Posted 9 years ago #
  13. Hey- I remember you were doing some Mu work. If you're trying to set up a Mu development environment on a mac. I got some tips / links on how to get the wildcard dns working using BIND & Bonjour so you don't have to manually enter each blog into your apache config and hosts file. Great for backing up and testing Mu sites. I did it a while back and it works like a charm ;)

    Posted 9 years ago #
  14. Good memory;) Yes, this is an MU based site with five separate blogs, each using it's own Thematic child theme. All themes are similar looking, but have different functions doing different things.

    ...and yes, I am on a Mac and have MAMP installed (only used it a couple times). I'd be interested in your tips/links to get this going.

    Posted 9 years ago #
  15. Here's the link that ended a month of hair-pulling due to my trying to get the wildcard DNS working local buddypress install.

    http://postpostmodern.com/instructional/a-smarter-mamp/

    I'm not sure how your MAMP set up will work with this method. I never used MAMP app. I've always set up my local dev environments manually. If you are successful setting this up you won't even need it anymore unless you like the GUI aspect of it.

    The postpostmodern's walkthrough may be hard to follow at first, but trust me it's worth it in the end. The good stuff happens in the comments so read all the way to the bottom. Let me know if you're having any problems with it. I'll see if I can help.

    I keep meaning to write up a tut that revisits this method illustrating the things I've learned in using it.

    good luck-

    Posted 9 years ago #
  16. This is great, thanks:) Just to clarify...what do you mean by "local dev manually" as opposed to MAMP?

    Posted 9 years ago #
  17. It comes down to what you mean by MAMP 1.) Mac Apache MYSQL & PHP or 2.) the Mac App that will configure a MAMP stack with one click. I was assuming that you had used the MAMP installer from mamp.info. Sorry if I misinterpreted you describing having "MAMP installed".

    I've never gone the one click route. I usually set it up with the php and apache builds already included in OS X and install MYSQL myself. In the end I hope that I've gained a better understanding of the core technologies by manually editing and configuring all those dirty little files either by using terminal and/or a text editor. Doing it this way can be a bit more harrowing at first but once you're rolling, it's sweet.

    Using the method from the link above configuring a site means creating a folder in the appropriate directory dropping in the files and voila Apache and BIND do the rest and the added bonus is that the Wildcard DNS enables Mu to work as expected in a local environment.

    Posted 9 years ago #
  18. Widget Context will be the first plugin without this problem and it'll work out of the box :)

    Chris

    Posted 9 years ago #
  19. Hi,

    the new version of Widget Context containing the fix is available. Just install it or upgrade it. The fix works out of the box.

    Sending a 'Thanks a lot for your help!' to Kaspars at http://konstruktors.com/.

    And it would be great, if you buy him a beer or so at http://konstruktors.com/blog/projects-services/ to say 'Thank you'.

    I already bought him a few six-packs. :)

    Chris

    Posted 9 years ago #
  20. Btw.: Kaspars told me that he also figured out a way to fix Widget Logic. He'll send the fix to the author once it is tested.

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.