Hi, bogette
Did you use the right way to enqueue the scripts to the admin page? Please read more here https://codex.ww.wp.xz.cn/Plugin_API/Action_Reference/admin_enqueue_scripts
<?php add_action( 'admin_enqueue_scripts', 'function_name' ); ?>
Hello, @longnguyen
You misunderstand me a little, unfortunately. And no wonder, it’s difficult to explain, so it is not less difficult to understand.
I get scripts. Me interested in a different question:
To change or add styles – you use the selector. It is not difficult to find, it is enough in chrome to go to the “view code” tab of a certain element.
What about Javascript? I created a hover button animation (javascript). I connected the file with this javascript to the plugin itself.
But how to connect this javascript animation to the buttons in the side menu? Through Id, through selector? How?
Hi,
https://prnt.sc/l426in
Each menu has an ID and I’ve tested with simple animation and it works. Maybe you not use the right selector?
(function($){
console.log('Hello admin');
$(document).ready(function() {
$('#menu-media').on('mouseenter', function(){
$('#menu-media > a').animate({
left: '35px',
});
})
})
})(jQuery)
@longnguyen
I was stupid.. The mistake was trivial, thank you.
I want to take this opportunity to ask for your opinion, and maybe even get advice:
In General, I need a different layout arrangement of blocks on the “users”page.
Look at the picture. I need a second layout.
View post on imgur.com
It is important to ask: is it possible to implement it without php knowledge? Using only css and javascript? I just had to ask you about it, this problem has been bothering me for days.
How to do it, if it is really possible? And thanks again!