Fullwidth template problem Twenty Twelve

Home Forums Calendar Products Events Calendar PRO Fullwidth template problem Twenty Twelve

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #52359
    jerryvandenberg
    Participant

    When 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.

    #52369
    Barry
    Member

    To 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?

    #52377
    jerryvandenberg
    Participant

    Don’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.

    #52378
    jerryvandenberg
    Participant

    This 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

    #52379
    Barry
    Member

    If 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?

    #52382
    jerryvandenberg
    Participant

    Getting 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.

    #52392
    Barry
    Member

    So 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?

    #52425
    jerryvandenberg
    Participant

    Hi 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.

    #52428
    jerryvandenberg
    Participant

    Hi 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.

    #52437
    Barry
    Member

    Hi 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!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Fullwidth template problem Twenty Twelve’ is closed to new replies.