need real homepage

Home Forums Calendar Products Events Calendar PRO need real homepage

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #999191
    Corrado
    Participant

    Hi there, I’m using Event Rocket plugin, ok for shortcodes, ok also to change main event page to the homepage.

    Regretfully I had hard life to customize the website because once the homepage change word press make a mess to understand that the homepage with events is really an homepage and not another page.

    So I’m not able to use plugin like Dynamic Widgets and also the id home is not anymore in the tag body, and also the WordPress conditional tag do not consider this like homepage!

    How can make a workaround?

    #999354
    Geoff
    Member

    Hi Corrado and welcome back to the forum.

    I wish there was a clean workaround here to help make the calendar the homepage of a site, but Event Rocket is currently the only one that I know of at the moment.

    Widget Visibility is another dynamic widget manager that might be wroth checking out. The key is to find a widget manager that supports custom post type archives since that is ultimately what the calendar is.

    Geoff

    #999554
    Corrado
    Participant

    Hi there, maybe I was not clear.
    Anyway I solved the issue with a trick.

    Changing with Event Rocket the real homepage with events mainpage make WP quite mad because is not recognizing anymore which is the homepage.

    Even the WP home conditional tag is not working for homepage anymore.
    <?php
    if ( is_home() ) {
    // do something
    }
    ?>

    So is not possible in a normal way to ‘take out’ something (some widget) ONLY from homepage.

    On the other way you can take out or take in widget normally in every page, no problems on that.

    My workaround was this one using JQUERRY

    var address = window.location.href;

    if( address == “http://www.mywebsite.com/&#8221;) {
    $(“body”).addClass(‘myhomepage’);
    }

    So now I have ‘myhomepage’ class ONLY on the homepage body and so can select and take out or take in what I want ONLY on homepage.

    Just use css like this–> body.myhomepage #mywidget { display:none; }

    #999613
    Geoff
    Member

    Ah, gotcha–thanks for clarifying and really nice work! I’m so glad this worked out and appreciate you sharing the solution here with us. 🙂

    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘need real homepage’ is closed to new replies.