Home › Forums › Calendar Products › Events Calendar PRO › need real homepage
- This topic has 3 replies, 2 voices, and was last updated 10 years, 8 months ago by
Geoff.
-
AuthorPosts
-
August 26, 2015 at 9:17 am #999191
Corrado
ParticipantHi 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?
August 26, 2015 at 2:36 pm #999354Geoff
MemberHi 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
August 27, 2015 at 7:16 am #999554Corrado
ParticipantHi 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/”) {
$(“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; }
August 27, 2015 at 8:35 am #999613Geoff
MemberAh, 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
-
AuthorPosts
- The topic ‘need real homepage’ is closed to new replies.
