Home › Forums › Calendar Products › Events Calendar PRO › Page ids
- This topic has 7 replies, 2 voices, and was last updated 9 years, 1 month ago by Geoff.
-
AuthorPosts
-
April 6, 2015 at 2:42 pm #953548John PaulParticipant
Hi,
my theme is working great with your plugin.. however, I need to be able to target each events page with some code to remove header areas that I dint need. Usually I would do this by writing the code to target a specific Page id. However, I cannot see any page id number to target.
So the question is , what Page id’s should I use for the different events pages ,list, month, week etc as well as the Event Post.
Many thanks
April 6, 2015 at 3:37 pm #953572GeoffMemberHey there, John–thanks for getting in touch!
Good question. Most calendar pages are actually not pages, but rather archives for custom posts. Your best best is to target the specific calendar view you want. Here’s a good and thorough list of examples of how you could go about that.
Will this help you get started? Please let me know. π
Cheers!
GeoffApril 6, 2015 at 3:50 pm #953579John PaulParticipantHi Geoff..can you send link again please , that one took me to a page about facebook ads…
thanks
April 7, 2015 at 7:23 am #953696GeoffMemberOh gosh, I’m so sorry about that–I had the wrong URL on my clipboard. π
This one will do the trick:Β http://pastebin.com/QU2aMwBJ
Cheers!
GeoffApril 7, 2015 at 7:56 am #953718John PaulParticipantThis reply is private.
April 7, 2015 at 8:07 am #953723GeoffMemberOh cool, if you want to tackle this in CSS, then you can retrieve the class you’re looking for by inspecting element in your browser’s DevTools.
For example, you can target the List View using theΒ .events-list class, followed by the nav menu:
.events-list .nav-menu { /* Styles */ }
Some other classes that might help out:
- .events-archive
- .events-gridview
- .events-single
Is this more in line with what you’re looking for?Β π
Geoff
April 7, 2015 at 9:12 am #953746John PaulParticipantMany thanks…!!!
I was just looking at the gridview class with firebug when your email came in…perfect
thank you
April 7, 2015 at 9:16 am #953749GeoffMemberMy pleasure! I’m so glad that did the trick. Sorry for misunderstanding your first thread. π
I’ll go ahead and close this thread but please feel free to reach back out with a new one if any other questions pop up and we’d be happy to help.
Cheers!
Geoff -
AuthorPosts
- The topic ‘Page ids’ is closed to new replies.