GrayD4Web
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Deregistering jquery breaks password protect pagesI have not, this happens rarely. But there are the possibilities in which this does change things. (in which I’ll keep this in mind)
Another question on it, why is the WP-includes jquery different than a copy of the same version that would make things like this break? (Aside from the
jQuery.noConflict();
Forum: Fixing WordPress
In reply to: Deregistering jquery breaks password protect pagesAlright, you offer compelling evidence and I will heed your advice. Troubleshooting issues with deprecated code has only seldom been an issue (that being upgrade from really old versions of WordPress to a modern one, WordPress has offered pretty solid upgrades.
Thank for your insight.
Forum: Fixing WordPress
In reply to: Deregistering jquery breaks password protect pageseven if the follow is true?
<?php if (!is_admin()) { $handle = 'jquery'; $src = get_template_directory_uri() . '/js/jquery.min.js'; $deps = false; $ver = '1.9.1'; $in_footer = false; wp_deregister_script($handle); wp_register_script($handle, $src, $deps, $ver, $in_footer ); } ?>
(excuse me if this goes back and forth. I’m just really trying to understand a few things with this.)
Forum: Fixing WordPress
In reply to: Deregistering jquery breaks password protect pagesHaha! Okay, granted. Obviously it destroys the password protect.
The goal of the deregister is to register a controlled copy in the theme itself. I need control over versioning of the Jquery, I want to be able to use a copy that will not change with an update, to avoid deprecated code.
WP does a really good job of keeping a good version of jquery in the includes, however I want to be 100% that updating wordpress will not break a client’s site. (I can deal with WP deprecated code, but jQuery deprecates stuff that is widely used..)
And still, for the matter of it, why does jquery have anything to do with the password page?
Forum: Hacks
In reply to: Hacking The_Content();Well I found another workaround, I added empty cells to the rows and utilized colspan’s.
Forum: Themes and Templates
In reply to: Help: Adding meta tags with Wp_headAh, the trouble was with the bloginfo() function. The function itself doesn’t return, it echoes. So I was double echoing. I cleaned that up and it works perfectly.
here’s the header.php (You can see the minimalistic file I was going for)
<!DOCTYPE html><html <?php language_attributes(); ?> class="<?php if (function_exists('css_browser_selector')) { echo css_browser_selector(); } else { echo 'off'; } ?>"> <head> <title><?php wp_title( '|', true, 'right' ); ?></title> <?php wp_head(); ?> </head> <body <?php body_class(); ?>>
Here’s the function:
function d4_head() { echo '<meta charset="'; bloginfo( "charset" ); echo '" />' ; echo '<link rel="profile" href="https://gmpg.org/xfn/11" />'; echo '<link rel="pingback" href="'; bloginfo( "pingback_url" ); echo '" />'; // Favicon echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('stylesheet_directory').'/img/favicon.ico" />'; // Jquery - Google, then wordpress's if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', false, '1.8.3', true); wp_enqueue_script('jquery'); } // Theme CSS echo '<link rel="stylesheet" type="text/css" media="all" href="'.get_bloginfo( 'stylesheet_url' ).'" />'; } add_action('wp_head', 'd4_head');
Forum: Themes and Templates
In reply to: Help: Adding meta tags with Wp_headNope, wp_head is right before closing head.
<!DOCTYPE html><html <?php language_attributes(); ?> class="<?php if (function_exists('css_browser_selector')) { echo css_browser_selector(); } else { echo 'off'; } ?>"> <head> <title><?php wp_title( '|', true, 'right' ); ?></title> <?php d4_head(); ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?>>
You can see here, I’m currently trying to just echo the function straight in the the head with d4_head();. The Functions.php, no longer has the add_action and I get the same result, any ‘echo’ actually echoes inside the body tag…
Currently, this is a barebones theme I’m developing and there is no live site to view.
Forum: Plugins
In reply to: Is WordPress' jQuery watered down?Anyone?