bojorquezja
Forum Replies Created
-
Forum: Plugins
In reply to: [No Title Tooltips] Looks like its brokenHi,
I change the code because it broke my admin panel, so it worked for me.
In the file notttips.js the new code should be:
window.onload = function() {
var bodylinks = document.getElementsByTagName(“body”);
var numadmin = 0;
for (var j = 0; j < bodylinks.length; j++) {
var clase = bodylinks[0].getAttribute(“class”);
if ( clase.search(“wp-core-ui”) > 0 ) {
numadmin = numadmin + 1;
}
if ( clase.search(“wp-admin”) > 0 ) {
numadmin = numadmin + 1;
}
}
if ( numadmin < 1) {
var alinks = document.getElementsByTagName(“a”);
for (var i = 0; i < alinks.length; i++) {
alinks[i].removeAttribute(“title”);
}
}
}Forum: Plugins
In reply to: [YOP Poll] Know the post ID of a custom post type from inside the pollI solve it myself. Inside the code you use javascript and php so you have to:
1.- in return_yop_poll (public-admin.php) save the $post->ID in a variable
2.- pass the value through arrays in php and javascript using functions like:
return_yop_poll (public-admin.php), return_poll_html (poll_model.php), yop_poll_register_vote (yoll-poll-public.js), yop_poll_do_vote (admin.php), and others to get finally to register_vote (poll_model.php) and use a validation here.Inside this last function the $post->ID doesn’t work because the url ends in wp-admin\ajax so the only way is to pass the post ID as a variable.
Forum: Themes and Templates
In reply to: [Hueman] Spaces below and above header logo…When you reduce the size of the screen (for phone size) those changes dont take effect.
I added this so it works:
#header .site-title { padding-top: 0px; padding-bottom: 0px; width: 100%;}