Adjust mobile.php

Home Forums Calendar Products Events Calendar PRO Adjust mobile.php

  • This topic has 6 replies, 3 voices, and was last updated 9 years ago by dmystudio.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1256411
    dmystudio
    Participant

    Hi there,

    I don’t know the proper syntax to make this change….

    Lines 25-27 in month >> mobile.php

    [[=raw title]]

    I need to change it to:
    ” >Learn more or even
    ” >Learn more

    Or at least that is what it would look like outside of the <script> tags.

    The site is at ncrt.flywheelsites.com, if you need.

    Thanks so much for your help!

    #1256417
    dmystudio
    Participant

    Sorry – lets try this again

    ____________
    don’t know the proper syntax to make this change….

    Lines 25-27 in month >> mobile.php

    <a class="url" href="[[=permalink]]" title="[[=title]]" rel="bookmark">[[=raw title]]</a>

    I need to change it to:
    <a href="<?php echo esc_url( $showlink ); ?>" rel="bookmark">[[=raw title]]</a>

    or even

    <a href="<?php the_field('link'); ?>">[[=raw title]]</a>

    Basically, I need to direct to another page that is not the single event page generated by tec…..

    The site is at ncrt.flywheelsites.com, if you need.

    Thanks so much for your help!

    • This reply was modified 9 years, 1 month ago by dmystudio.
    #1257024
    Hunter
    Moderator

    Hi and welcome 🙂

    Are you familiar with our Themer’s Guide? It’s the best resource we have geared towards customizing all event-related content.

    Most info can be found in our Technical Docs, so check that out and let me know what you’re able to find. Please note we’re limited with customizations as stated in our What support is provided for license holders? Knowledgebase article, but I’ll do my best to at the least point you in the right direction.

    Basically, I need to direct to another page that is not the single event page generated by tec…..

    Where exactly are you linking to? Where are these links coming from/stored? Last recommendation is to search our forums in hopes another user has requested similar info which has a working solution.

    Keep me posted and take care. Cheers!

    #1257117
    dmystudio
    Participant

    Yes – if you could point me in the right direction, that would be great.
    I’ve gone through your themes guide etc.

    I have this working on the regular calendar and events widget – but not the
    mobile version of the calendar.

    I need to provide a ‘Learn more’ link that directs users to a static page.
    I used acf which pulls the URL I want to direct users to. I actually also
    have a Buy Tickets link as well which goes to specific pages of our
    ticketing system (again using acf).

    It works beautifully, except on mobile.

    If you could point me to documentation for mobile.php that might apply?

    Thanks for any help you may be able to give – I really appreciate it. I
    know this is beyond your scope….

    #1258701
    Trisha
    Member

    Hi Denise,

    I’m jumping in here to help Hunter out a bit. Sorry to hear your having trouble with this, the documentation for this file is quite a bit different than the others but we’ll get you set up! 🙂

    If you’ll refer back to the Themer’s Guide https://theeventscalendar.com/knowledgebase/themers-guide/ and scroll to the bottom to the section entitled “Javascript Templating” that will get you headed in the right direction.

    Basically, the documentation that you need for the mobile.php file lives at the top of

    ‘src/views/month/single-event.php’

    The syntax is different because we’re using javascript templating for the mobile view. Your normal php syntax won’t work…as you’ve seen!

    Hopefully this gets you headed in the right direction. Let us know how it goes! ?

    Cheers,
    Trisha

    #1270044
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Adjust mobile.php’ is closed to new replies.