Forum Replies Created
-
AuthorPosts
-
Sorry, just noticed that the YouTube “share” works but when you click on it, the social channel icons cannot be clicked on. When I use the video in the easy slider, it doesn’t show on mobile so I removed it and am using Soliloquy instead.
Thanks
Perfect! Thanks!
Thanks for trying and all of your help.
Hi Ismael,
The code is still not being injected into the calendar month view page. :-(JQuery is not set to load in the footer.
Not sure where I should be see this?
You can also try to replace “on” with “addEventListener”.Thanks
Hi Ismael,
It is stripping out the injected JS style on the calendar view. I can see the style in the single event but not in calendar view.Thanks
Hi Ismael,
Your last bit of code did not work on with the single event listing or the calendar view.
I have this running on localhost, all plugins disabled except the calendar pro software, running a child theme with just your code in the child functions file. As mentioned, works on the single event page but not in the main calendar view. What is your local config, maybe I can reproduce it?Thanks
Hi Ismael,
It is still not working in the calendar view for some reason – look at 11/22.Thanks
Hi Ismael,
Here is a summary of where we are at-
1.
add_action(‘wp_footer’, ‘ava_color_closed_event’, 9999);
function ava_color_closed_event() {
?>
<script>
(function() {
let et = document.querySelector(‘.tribe-events-single-event-title’); This throws a 500 server error.
et = et ? et : document.querySelector(‘.tribe-events-month-event-title a’);
if( ( et ) && ( et.textContent == ‘Closed’ || et.textContent == ‘Library Closed’ ) ) {
et.style.color = ‘#c20b1a’;
}
})();
</script>
<?php
}
_________________________________________________________________________________________________________
2. This doesn’t work-
add_action(‘wp_footer’, ‘ava_color_closed_event’, 9999);
function ava_color_closed_event() {
?>
<script>
(function() {
const et = document.querySelector(‘.tribe-events-single-event-title’);
const etm = document.querySelector(‘.tribe-events-month-event-title a’);
if( ( et.textContent == ‘Closed’ || etm.textContent == ‘Library Closed’ ) ) {
et.style.color = ‘#c20b1a’;
etm.style.color = ‘#c20b1a’;
}
})();
</script>
<?php
}
________________________________________________________________________________________________________
3. This only works on the single event page itself, but not in the calendar view.
add_action(‘wp_footer’, ‘ava_color_closed_event’, 9999);
function ava_color_closed_event() {
?>
<script>
(function() {
const et = document.querySelector(‘.tribe-events-single-event-title’);
if(et && et.textContent == ‘Closed’ ) {
et.style.color = ‘#c20b1a’;
}
})();
</script>
<?php
}- This reply was modified 6 years ago by xyzb.
Hi,
Couple of things – “let” is invalid according to my PHP editor so I changed it to “const”. The new script didn’t work – it didn’t change the title color on the event page or the calendar page title/link so I went back to the first script you had sent.Other ideas?
ThanksThanks! This works on the single event but not on the calendar view itself. Could this be changed as well?
Thanks!
The events cal uses the event(post) title on the calendar. When we are closed, I want the title to be styled so it is red, etc. I am able to do this using a filter in the functions file but it retains the markup in the tile which is displayed in the browser<head> tag.
Take a look at the page included.
Thanks
That works but that is not what I wanted. I want to add HTML to the event post title so if we are closed that day, it will be red and bold in the calendar, the list and in the post itself.
Other ideas?
Thanks
Sorry! Spoke too soon.
Is there a way to remove the HTML from the <title></title> tag in the the post page <head>? Here is the filter I am using while calling the “closed” custom field in my child theme functions file.
This code works great on a a standard blog post, but not on an event entry(post).
Thanks!
add_filter( ‘the_title’, ‘wpse33385_filter_title’, 10, 2 );
function wpse33385_filter_title( $title, $post_id )
{
if( $new_title = get_post_meta( $post_id, ‘closed’, true ) )
{
return $new_title;
}
return $title;
}- This reply was modified 6 years ago by xyzb.
Never mind – I figured it out- you can close this ticket.
Thanks!
Hi,
It was related to my header.php and avia.js in my child theme. It is resolved.Thanks
I made changes to the header.php by adding the Google Tag Manager noscript just inside the body tag. I didn’t touch the avia.js file but for some reason had to add it to the child theme folder.
Is there a preferred way of adding the tag manager noscript code ?
Thanks much!
Here is what I found. I had to move the js/avia.js file into my child theme. I also noticed that there is a header.php file in both my child and parent theme for some reason. I’m not sure if this is from the update to Enfold. There must be something in my child theme that is creating issues.
Comments?
Thanks
Hello.,
I’ve modified the files to add an additional button to the full screen slideshow –
slideshow_fullscreen.php
av-helper-slideshow.phpWhen opening the modal window to add the caption/buttons I can see the 3 button selection in the code, but the modal window is only showing attributes for button 1 and button 3. It appears that the window height needs to be tweaked but I’m not having any luck thus far.
Also, I’m hoping I can include the modified files in my child theme so I would really appreciate your insight on all items mentioned here. I’m running the latest Enfold rev.
Thanks!
Hi Mike,
I looked at the docs and didn’t see how to add a period after a and m, so it is a.m. It looks like it is just am or AM or pm or PM. Please advise.Thanks
Will the theme calendar theme overrides still work as outlined on the Modern Tribe website?
Thanks
It’s resolved.
Thanks
This reply has been marked as private.May 3, 2018 at 3:36 pm in reply to: Default Template Settings Missing from Event Calendar Pro #950852Just an fyi…
There is a typo-
remove_action(‘tribe_events_template’, ‘avia_events_tempalte_paths’, 10, 2);Awesome info though.
Thanks much!
Awesome, thank you, but this really didn’t help. The layout and links that are created by a default WP theme cannot be replicated by adding the code into my child theme functions file. Disappointed. I have spent the last 2 days trying to get Enfold to work with Events Calendar Pro and it has not worked well at all.
Thanks much!
Please close .
Thanks
I found a filter function that Ismael posted a few years ago that worked. I put it in my child themes function file. Hopefully it will work on future updates.
Thanks
This reply has been marked as private.I don’t understand why the developers did this. Allowing to create a dedicated mobile menu was awesome. Could you provide the CSS to hide the secondary menu on mobile(phones) and then I will need to add code to add those items to the main menu. I don’t like the new change, wondering why this was done????
Thanks
-
AuthorPosts