Okay
  Public Ticket #1608399
Calendar Event Page
Closed

Comments

  • Jewelz518 started the conversation

    Is there a way to have the event on the calendar link directly to an event page? 

    Also.... My event pages are not showing any event info. I already tried switching permalinks back and forth. 

  •  94
    Valentin replied
    Hello,

    You can open your events in Single Page mode by selecting it from the General Settings.



    Can you give me link to the website to see what is showing? 

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  •   Jewelz518 replied privately
  •   Valentin replied privately
  •   Valentin replied privately
  • Jewelz518 replied

    Version 2.1.0

  •   Zhivko replied privately
  •   Jewelz518 replied privately
  •   Zhivko replied privately
  • Jewelz518 replied

    Just wanted to make sure we are on the same page, I don't want it to drop down like that. I want it to go directly to the single page when you click on it in the calendar.

  •  94
    Valentin replied

    Yes we are, but you have a problem to be fixed first. Is it possible to upload the website somewhere so we can investigate the problem? Its really hard to guess like that?'.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • Jewelz518 replied

    Ok, let me try and export it and upload it to a different server. I'll get back to you today! Thank you!

  •  94
    Valentin replied

    Your purchase key may need to be reset. Just let me know when you are about to upload it and i will do it.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  •  94
    Valentin replied

    Hello,

    We found a small bug with Single Pages code. Was wondering if you can update to the latest version and see if your problem with Single Pages is fixed as well?

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • Jewelz518 replied

    The update hasn't come through yet, I'll check again in a little bit!

  • Jewelz518 replied

    It worked :)

    So now I just need to make it so when someone clicks on the event in the calendar, it goes straight to that single page. It confuses people when it drops down, they don't know to click to go to single page with all event info.

    Thanks so much!

  •  94
    Valentin replied

    Great!

    The expanding effect is there because if in different views you have more than 3 events on this date you will not be able to click on the rest also on the event panel there is the Reminder button.

    If you are sure there will not be more than 3 events on a single day and the reminder is not something you need I think we can make some little corrections in the code.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • Jewelz518 replied

    I see what you're saying. Would it be possible to get the other code option? I don't think our customers would utilize the reminders and the less steps the better for them.

  •  94
    Valentin replied

    If this is the case, can you tell just tell me in which views you want to do that? Month and Week? 

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • Jewelz518 replied

    Yes please, and thank you!

  •  94
    Valentin replied

    Open your theme functions.php file and paste this code:

    add_action('wp_head', function() {
        ?>
        <style>
            .stec-layout-month-eventholder { display: none !important; }
            .stec-layout-week-eventholder { display: none !important; }
        </style>
        <script type="text/javascript">
            (function ($) {
                if (typeof $.stecExtend === 'function') {
                    $.stecExtend(function (master) {
                        master.$instance.on('click', '.stec-layout-month-daycell-event, .stec-layout-week-daycell-event', function (e) {
                            e.preventDefault();
                            e.stopPropagation();
                            var id = parseInt($(this).attr('data-id'), 10);
                            var offset = parseInt($(this).attr('data-repeat-time-offset'), 10);
                            $.each(master.calData.eventsPool, function () {
                                if (this.id === id) {
                                    if (this.permalink != '') {
                                        window.location.href = this.permalink + '/' + (offset ? offset : '');
                                    }
                                    return false; // break;
                                }
                            });
                        });
                    });
                }
            })(jQuery);
        </script>
        <!--?php
    });
    


    Let me know if encounter any problems.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • Jewelz518 replied

    It broke the page....

  •  799
    Zhivko replied

    There is a typo in the code. Try again with this one:


    add_action('wp_head', function() {
        ?>
        <style>
            .stec-layout-month-eventholder { display: none !important; }
            .stec-layout-week-eventholder { display: none !important; }
        </style>
        <script type="text/javascript">
            (function ($) {
                if (typeof $.stecExtend === 'function') {
                    $.stecExtend(function (master) {
                        master.$instance.on('click', '.stec-layout-month-daycell-event, .stec-layout-week-daycell-event', function (e) {
                            e.preventDefault();
                            e.stopPropagation();
                            var id = parseInt($(this).attr('data-id'), 10);
                            var offset = parseInt($(this).attr('data-repeat-time-offset'), 10);
                            $.each(master.calData.eventsPool, function () {
                                if (this.id === id) {
                                    if (this.permalink != '') {
                                        window.location.href = this.permalink + '/' + (offset ? offset : '');
                                    }
                                    return false; // break;
                                }
                            });
                        });
                    });
                }
            })(jQuery);
        </script>
        <?php
    });
    

    Stachethemes Developer

  • Jewelz518 replied

    My computer is with IT today, should have it back tomorrow. I'll let you know if I have any issues. Thanks so much!

  •  94
    Valentin replied

    Don't worry we are not going anywhere

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • Jewelz518 replied

    Hello - I'm back :) So the new code worked. I did some research and found this code which changes the permalinks to say "event"....

    add_option('stec_permalinks', array(
                'calendar' => 'stec_calendar',
                'event'    => 'event',
                'cron'     => 'stec_cron',
            ));

    ...however now when I click on the events and it opens in the new page, I get a 404.


  •  94
    Valentin replied

    Hey there

    I'm glad it worked out! About the permalinks, try this: 

    Go to Dashboard -> Settings and just click Save Changes without doing anything.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • Jewelz518 replied

    It worked, amazing :) Thank you!

  •  94
    Valentin replied

    That's great! 

    I may update the article just in case something like that happen again to someone else

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • Jewelz518 replied

    New problem... I can only see the single page events when logged in. I have each event set to public and it still shows that blank screen to site visitors.

  •   Zhivko replied privately