Skip Navigation

[Resolved] Editor isn't working

This support ticket is created 5 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 23 replies, has 2 voices.

Last updated by Shane 5 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1299885

Hi there! So for some reason it seems that I can't open the css and javascript editor in my toolset views anymore. Besides that there's also a content template called slider two that doesn't seem to display anything, while I'm really sure there's code there to which I'm reffering in the html script of my builder. Can you help me to find out what's going wrong?

#1299943

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kerim,

It seems there is an issue with the theme and the editor. There is an error in your code for flexslider.

  $('#carousel').flexslider({
  animation: "slide",
  controlNav: false,
  animationLoop: false,
  slideshow: false,
  itemWidth: 210,
  itemMargin: 5,
  asNavFor: '#slider'
  });

Its complaining that flexslider is not a function. Do you have flexslider libraries installed?

Thanks,
Shane

#1299977
ftp.PNG

I thought I did everything properly. I took the example from your colleague that solved this support ticket: https://toolset.com/forums/topic/how-to-display-the-pics-i-uploaded-as-a-slider/#post-518295.

I uploaded a screenshot from my ftp so you can see what i installed. Do you have any idea what might be missing?

#1299987

And, your colleague instructed me in another ticket. I followed his exact advise

#1299991

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kerim,

I did something similar for a customer a while back and decided to create a plugin that imports the libraries for flexslider.
hidden link

Just download and install this plugin and it will import the correct libraries for you.

Please let me know if this helps.

Thanks,
Shane

#1300001

You my friend, are a real boss! AWESOME. So do I have to remove everything flexslider related out of my child theme folder?

#1300005

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kerim,

Yes because this won't be needed anymore since the plugin is importing it for you.

#1300011

Ok, I removed it all from my child theme folder and installed the plugin. But now the slider isn't showing anymore. Can you tell me what I'm doing wrong?

#1300013

Here's a link to a page where the slider is located. It's underneath the header: locaties: hidden link

#1300021

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kerim,

I think the problem is that you are loading the images but you forgot to add the code to initialize the slider.


jQuery(window).load(function() {
   jQuery('.flexslider').flexslider();
 });

Did you remove the initialisation code for the slider from your theme?

#1300023

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

All the plugin i made is doing is importing the libraries, so if you removed the code that actually loads the slider then you will have issues.

#1300037

Yes I removed everything. I created a new file in: /public_html/wp-content/themes/child-theme-astra called: javascript-child-theme.js and I added this code to it, afterwards the slider still didn't work:

( function( $ ) {
$( document ).ready( function(){

$('#carousel').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
slideshow: false,
itemWidth: 210,
itemMargin: 5,
asNavFor: '#slider'
});

$('#slider').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
slideshow: false,
sync: "#carousel"
});

});
})( jQuery );

And after that I tried this code:

jQuery(window).load(function() {
jQuery('.flexslider').flexslider();
});

That didn´t work either

#1300041

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kerim,

Yes this is the code thats needed.

Did you remove any code from the functions.php file because the script needs to be enqueued into the theme in order for it to work.

If you removed any code from the functions.php file please let me know.

Thanks,
Shane

#1300145

Yes it's all removed :).

#1300147

And still not working I'm afraid