Home › Forums › Calendar Products › Events Calendar PRO › Fullwidth template problem Twenty Twelve
- This topic has 9 replies, 2 voices, and was last updated 12 years, 10 months ago by
Barry.
-
AuthorPosts
-
June 27, 2013 at 6:48 am #52359
jerryvandenberg
ParticipantWhen I select the fullwidth template for my activity single page, it removes the sidebar, but the width of the site content is still at 65.104166667%. I checked this using the ‘example page’ to see if there’s something wrong with the template, but the template is correct.
June 27, 2013 at 8:41 am #52369Barry
MemberTo make the content occupy the full width an extra CSS class has to be applied. What Twenty Twelve tries to do is detect if the full-width template is in use and add that extra class – but for a number of reasons that process doesn’t work in this case.
What we can do though is add a snippet of code to our theme functions.php file which should resolve this for events pages.
Does that help at all?
June 27, 2013 at 9:18 am #52377jerryvandenberg
ParticipantDon’t see why it wouldn’t work. Can you tell me where and how I implement this code snippet in the functions.php (of the Twenty Twelve theme is assume?). I copied the code behind your link and pasted it in the functions.php, but the page broke.
June 27, 2013 at 9:23 am #52378jerryvandenberg
ParticipantThis is de error I get:
Fatal error: Cannot redeclare full_width_events() (previously declared in C:\wamp\www\bebasic\wordpress\wp-content\themes\twentytwelve\functions.php:470) in C:\wamp\www\bebasic\wordpress\wp-content\themes\twentytwelve\functions.php on line 126
June 27, 2013 at 9:33 am #52379Barry
MemberIf you have already added a function called full_width_events() then you will not be able to add a second of the same name.
In that case, you could rename the function I provided – so, within the snippet I provided, wherever it says full_width_events you might change this to bebasic_full_width_events or otherwise make it unique.
Does that help?
June 27, 2013 at 10:03 am #52382jerryvandenberg
ParticipantGetting there. There is one thing that seems strange. The event calender appears on both: ../bebasic/workshops/ and ../bebasic/workshops/categorie/workshops/ On the first one the content is 2/3 of fullwidt. The second is fullwidth.
June 27, 2013 at 11:06 am #52392Barry
MemberSo you’ve got a category of events that is called workshops?
When I test out fullwidth template with an events category (using the above snippet) everything seems fine to me. Can you provide a URL where I can see the problem, or are you developing locally only at this point?
June 28, 2013 at 1:44 am #52425jerryvandenberg
ParticipantHi Barry, I need to implement the snippet still with your suggestions and get back to you. I am developping locally so I can’t send you an URL yet.
June 28, 2013 at 3:01 am #52428jerryvandenberg
ParticipantHi Barry, looked for the full_width function and it was already there in my functions.php??? Anyway, it still returns the same page with the content at 2/3.
June 28, 2013 at 6:35 am #52437Barry
MemberHi Barry, looked for the full_width function and it was already there in my functions.php???
It isn’t part of Twenty Twelve, so you must have added it twice somewhere along the line (if indeed it is exactly the same and doesn’t simply share the same name).
Anyway, it still returns the same page with the content at 2/3.
That’s a shame 🙁
All I can really say is that it solves the problem for me – I can’t really offer anything else since if I understand correctly you are developing locally. If you do move things to a web-accessible URL though and still need help just let me know and I can take another look and see if there are any obvious clues as to why it isn’t working.
Thanks!
-
AuthorPosts
- The topic ‘Fullwidth template problem Twenty Twelve’ is closed to new replies.
