custom cursor problem

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
piotrh
 
 
Posts: 106
Joined: Sat Mar 15, 2014 11:00 pm

custom cursor problem

Post by piotrh » Fri May 10, 2019 3:29 pm

Hello,
I want to use custom cursor (png image) when hovering over an object.
I added custom style to object using this scheme:
cursor: url(http://www.pagename.com/cursor/cursorname.png) 35 35, auto;

It only works fine until I add a breakpoint. Adding breakpoint brings back default cursors.
How to fix that?

User avatar
Pablo
 
Posts: 16853
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: custom cursor problem

Post by Pablo » Fri May 10, 2019 3:32 pm

Note that we cannot assist you with custom code.
But you may also have to add the cursor to the breakpoints styles.
Or use: !important.

piotrh
 
 
Posts: 106
Joined: Sat Mar 15, 2014 11:00 pm

Re: custom cursor problem

Post by piotrh » Fri May 10, 2019 4:27 pm

I published two test pages and then checked html code generated in following situations:
1. without breakpoints
2. with breakpoints

Result was:
Ad.1 Custom code was included in generated html code
Ad.2 Custom code was NOT included in generated html code

User avatar
Pablo
 
Posts: 16853
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: custom cursor problem

Post by Pablo » Fri May 10, 2019 4:52 pm

Maybe it was moved to the style sheet?

piotrh
 
 
Posts: 106
Joined: Sat Mar 15, 2014 11:00 pm

Re: custom cursor problem

Post by piotrh » Fri May 10, 2019 5:13 pm

Checked that again, but it was not.

User avatar
Pablo
 
Posts: 16853
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: custom cursor problem

Post by Pablo » Fri May 10, 2019 5:42 pm

WWB will not remove the code, so it must be somewhere.

piotrh
 
 
Posts: 106
Joined: Sat Mar 15, 2014 11:00 pm

Re: custom cursor problem

Post by piotrh » Fri May 10, 2019 6:22 pm

I've checked once again. Its only there when I have no breakpoints.
Last edited by piotrh on Fri May 10, 2019 9:40 pm, edited 1 time in total.

User avatar
Pablo
 
Posts: 16853
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: custom cursor problem

Post by Pablo » Fri May 10, 2019 8:21 pm

When you add breakpoints, all inline styles will be moved to the global style sheet to make sure different breakpoints can have different styles.
The reason why your code does not work is because WWB does not understand the 'url' syntax of the cursor.
So, you will need to move the code to the head section yourself or enable 'keep inline styles' in Tools -> Options -> HTML.

piotrh
 
 
Posts: 106
Joined: Sat Mar 15, 2014 11:00 pm

Re: custom cursor problem

Post by piotrh » Sat May 11, 2019 5:58 am

Thank You Pablo!

Post Reply