Forum Replies Created

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter cpatience

    (@cpatience)

    Isn’t that what this line does?

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    Thread Starter cpatience

    (@cpatience)

    Just in case anyone else has this problem, I just figured out what’s going on. I had forgotten to close the </form> in the searchform.php. So if you ever have a case where every form triggers a search query, check to make sure all your forms have closing tags.

    Thread Starter cpatience

    (@cpatience)

    I wrapped that second code in a function and added it. Still no change. When I view the page source, I could clearly see that the scripts were being called.

    Then I tried literally copying the code from the page that rendered using wp_head and pasting it directly into header.php (without the wp_head.) Everything was working until I pasted this code which wp_head outputs:

    <style type="text/css" media="print">#wpadminbar { display:none; }</style>
    <style type="text/css">
    	html { margin-top: 28px !important; }
    	* html body { margin-top: 28px !important; }
    </style>

    I have no idea why these styles would cause the error, but I was able to remove the code by deactivating the admin bar using

    wp_deregister_script('admin-bar');
    wp_deregister_style('admin-bar');
    remove_action('wp_footer','wp_admin_bar_render',1000);

    and now it appears that everything is working!

    There is no admin bar, but it’s worth the loss.

    Thanks for the help.

    Thread Starter cpatience

    (@cpatience)

    Thanks for the tips. I was playing around with the wp_enqueue_script before…this is what I’ve inserted into my functions.php after deleting the three <script> lines. It still isn’t working – does this functions.php code look correct?

    function my_init_method() {
        if (!is_admin()) {
            wp_deregister_script( 'jquery' );
            wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js');
            wp_enqueue_script( 'jquery' );
        }
    }    
    
    add_action('init', 'my_init_method');
    
    if ( !is_admin() ) { // instruction to only load if it is not the admin area
       // register your script location, dependencies and version
       wp_register_script('clipboard',
           'https://www.creativepatience.com/sample_blog/js/clipboard.js',
           array('jquery'),
           '1.0' );
       // enqueue the script
       wp_enqueue_script('clipboard');
    
       wp_register_script('zeroclipboard',
           'https://www.creativepatience.com/sample_blog/zeroclipboard/ZeroClipboard.js',
           array('jquery'),
           '1.0' );
       // enqueue the script
       wp_enqueue_script('zeroclipboard');
    }

    Thanks much.

    Thread Starter cpatience

    (@cpatience)

    Thanks Frederick, I did see that post but since I had no FTP access at the time, I wasn’t able to delete the listed files. Fortunately I was finally able to get access and followed those directions.

    Thread Starter cpatience

    (@cpatience)

    That’s too bad. So does that mean what I’m trying to do can’t be done?

    Thread Starter cpatience

    (@cpatience)

    Is it possible to add a class to content that is being pulled by the_content()?

    Since the home page will constantly be changing I need to make sure that the changes aren’t post-specific.

    Thread Starter cpatience

    (@cpatience)

    Nope – the slide show is still in the bottom right and is covering up the text behind it instead of having the text wrap around.

    Thread Starter cpatience

    (@cpatience)

    Hi esmi,
    Thanks for reminding me to keep code clean. The mark-up is now clean and the only CSS errors are ones for text-shadow.

    Thanks.

    Thread Starter cpatience

    (@cpatience)

    Sorry about that – the site is still in dev so I didn’t think to include it. Here is the link: https://208.101.30.165/~silversp/

Viewing 10 replies - 16 through 25 (of 25 total)