Delete elements

rogimon
rogimon
Offline
0
Another question. How can I delete the "List" view button as well as the two boxes to the left of the date as seen in my attachment? I do not need the visitors to the site to see those elements. All they need to see is my availability for the month.
Attachments:
Responses (6)
  • Accepted Answer

    Sunday, March 15 2015, 11:33 AM - #Permalink
    0
    well, you would need to remove them from the PHP (and HTML) files that build them...
    are you a coder?
    The reply is currently minimized Show
  • Accepted Answer

    rogimon
    rogimon
    Offline
    Sunday, March 15 2015, 05:18 PM - #Permalink
    0
    I am not a coder but I used Firebug to remove the code. I just do not know where to find the files I need to edit.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, March 15 2015, 06:57 PM - #Permalink
    0
    well, the code you are looking for is in the file:

    /components/com_calendarplanner/views/month/default.php (for the month view)
    Also in folders /week and /day.

    try to carefully locate it. you won't have problem for the LIST one.
    however, if you just remove the dropdowns on the left, you will most likely have problems, because there is JavaScript code that acts on that. this is way more difficult to eliminate. I can't just point you to it, to remove these, some custom coding work would be necessary..

    the other thing you could try, if you know CSS, is try to simply "hide" them with CSS, instead of actuall "destroying" them.
    The reply is currently minimized Show
  • Accepted Answer

    rogimon
    rogimon
    Offline
    Monday, March 16 2015, 01:22 AM - #Permalink
    0
    I would rather the CSS solution. However, I am a novice there as well.
    The reply is currently minimized Show
  • Accepted Answer

    antfarm
    antfarm
    Offline
    Thursday, March 19 2015, 12:53 PM - #Permalink
    0
    I need to turn this off as well. Think I'll use CSS ;)

    What would be great though is a toggle on/off of filter options in the component admin. Is this a possibility for addition?
    • rogimon
      more than a month ago
      I would love the toggle on/off as well in the component admin. However, the CSS workaround did the trick.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 20 2015, 12:27 PM - #Permalink
    0
    the CSS was simply this, added on a CSS file:

    .multiselect{
    display:none !important;
    }
    The reply is currently minimized Show
Your Reply