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: 173
Joined: Sat Mar 15, 2014 11:00 pm

custom cursor problem

Post by piotrh »

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: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: custom cursor problem

Post by Pablo »

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: 173
Joined: Sat Mar 15, 2014 11:00 pm

Re: custom cursor problem

Post by piotrh »

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: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: custom cursor problem

Post by Pablo »

Maybe it was moved to the style sheet?
piotrh
 
 
Posts: 173
Joined: Sat Mar 15, 2014 11:00 pm

Re: custom cursor problem

Post by piotrh »

Checked that again, but it was not.
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: custom cursor problem

Post by Pablo »

WWB will not remove the code, so it must be somewhere.
piotrh
 
 
Posts: 173
Joined: Sat Mar 15, 2014 11:00 pm

Re: custom cursor problem

Post by piotrh »

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: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: custom cursor problem

Post by Pablo »

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: 173
Joined: Sat Mar 15, 2014 11:00 pm

Re: custom cursor problem

Post by piotrh »

Thank You Pablo!
Post Reply