Forum Replies Created

Viewing 15 replies - 46 through 60 (of 79 total)
  • Thread Starter snakelyone

    (@snakelyone)

    Hi Snehal,

    I’m still confused. I went into my customizer and do not see any special characters, either in the site identity window nor in the additional css window. can you please clarify further? do you mean the copyright symbol itself? thank you!

    Thread Starter snakelyone

    (@snakelyone)

    sorry, but i’m confused — perhaps you can clarify? Are there special characters after the copyright section?

    In any event, I was already able to shrink the padding on the section with the copyright thanks to Evan’s instructions, but not in the footer widget section just above the copyright section. That is what seems not to be impacted by the code Evan offered. thank you!

    Thread Starter snakelyone

    (@snakelyone)

    Thread Starter snakelyone

    (@snakelyone)

    actually, after playing around with it, i just got it to work, but what about changing the footer widget padding?

    Thread Starter snakelyone

    (@snakelyone)

    Hi Evan,

    I tried to make the footer padding change with the code you gave me, but something must be missing, as the code keeps giving me an error in the additional CSS section:

    .site-info-wrapper {
    padding: 30px 0;
    }

    it doesn’t like the first line (i get a red circle with a white x in it)

    thoughts? thanks
    blake

    Thread Starter snakelyone

    (@snakelyone)

    You too!

    Thread Starter snakelyone

    (@snakelyone)

    Epic! thank you — it works, it all works! I’m so grateful you stuck with me through all of my back and forth — you are amazing! Thank you thank you thank you! blake

    Thread Starter snakelyone

    (@snakelyone)

    okay, i just did what you are asking, i highlight the code and selected “code” above — thank you for the clarification!

    <?php
    /*
    Plugin Name: my customizations - enable
    video header on mobile
    Description: code that is used always
    Version: 1.0.0
    Author: B More Creations
    Author URI: warnerpoint.net
    */
    add_filter('header_video_settings', function ($args) {
        $args['minWidth'] = 0;
        return $args;
    });
    function autoplay_youtube_header() {
        ob_start(); ?>
    jQuery( window ).on( 'load', function()
    {
    
    window.wp.customHeader.handlers.youtube.player.playVideo();
    } );
    <?php
        $script = ob_get_clean();
        wp_add_inline_script('wp-custom-header', $script);
    }
    add_action('wp_enqueue_scripts', 'autoplay_youtube_header');
    
    
    Thread Starter snakelyone

    (@snakelyone)

    Hi Evan, Well, I’m pretty lousy at code (i’m a designer!) and on my text editor (i’m using text wrangler), it is single quotes, not standard type quotes…i have tried to “wrap” the code (but my text wrangler does not have a “code” button, so I did it online, but still no luck…I guess i am giving up? I wonder why it works for you but not for me? This is the last code I created, and when I test it online, it says it works….but not for me…when you are testing it, are you testing it with my video or a different one (perhaps one without sound, or perhaps one not on youtube)?

    thank you
    blake

    <?php
    /*
    Plugin Name: my customizations – enable
    video header on mobile
    Description: code that is used always
    Version: 1.0.0
    Author URI: warnerpoint.net
    */
    add_filter(‘header_video_settings’, function ($args) {
    $args[‘minWidth’] = 0;
    return $args;
    });
    function autoplay_youtube_header() {
    ob_start(); ?>
    jQuery( window ).on( ‘load’, function()
    {

    window.wp.customHeader.handlers.youtube.player.playVideo();
    } );
    <?php
    $script = ob_get_clean();
    wp_add_inline_script(‘wp-custom-header’, $script);
    }
    add_action(‘wp_enqueue_scripts’, ‘autoplay_youtube_header’);

    Thread Starter snakelyone

    (@snakelyone)

    Hi Evan, Yes, you were right, I was missing the opening PHP code…and I did figure that out on my own…however, I fear I am not pasting your code in correctly, because autoplay is not happening. (I have also read in my research that youtube videos with sound will never auto play…I’m working on gaining access to the video itself, but in the meantime, can you see if I am missing anything in this code:

    <?php
    /*
    Plugin Name: my customizations – enable video header on mobile
    Description: code that is used always
    Version: 1.0.0
    Author URI: warnerpoint.net
    */
    add_filter( ‘header_video_settings’, function( $args ) {

    $args[‘minWidth’] = 0;

    return $args;

    } );
    function autoplay_youtube_header() {

    ob_start();

    ?>
    jQuery( window ).on( ‘load’, function() {
    window.wp.customHeader.handlers.youtube.player.playVideo();
    } );
    <?php

    $script = ob_get_clean();

    wp_add_inline_script( ‘wp-custom-header’, $script );

    }
    add_action( ‘wp_enqueue_scripts’, ‘autoplay_youtube_header’ );

    Thread Starter snakelyone

    (@snakelyone)

    Hi Evan,

    Okay, I managed to get rid of the code, but the youtube link remains un-clickable — the red arrow is there, but the video does not play. In other words, the mobile header is a screenshot of the opening image of the video, and the red arrow does nothing.

    I have been hunting around for what is happening to no effect. I cannot seem to find anyone with this problem.

    This is the youtube url: https://www.youtube.com/watch?v=Lj2Y8Rmlbq0

    Thread Starter snakelyone

    (@snakelyone)

    Hi Evan, I am still having the problem with the code at the top of the page — it has been there since I first started (so i never had it “right”)…can you please advise? I would be super grateful, thank you

    Thread Starter snakelyone

    (@snakelyone)

    to be clear, every time I attempted to create the php file, the site has had the code across the top of the page. Do you see it?

    Thread Starter snakelyone

    (@snakelyone)

    the video won’t play (the button is not active, just static and it does nothing), and also the code is still on the top of the page?

    and at this point is not letting me log in to my admin page when the code string is at the top…do you not see that? instead, when i go to https://warnerpoint.net/wp-admin/
    there is no login option — instead just a blank page with the code snippet

    Thread Starter snakelyone

    (@snakelyone)

    And then I used text wrangler to repeat the process outlined in the how to create a must use plugin do it again (no dreamweaver php this time, as there is a lot of extra info in the file) but no luck. Still seeing the code on the top of the page (on desktop and tablet, but the phone remains the static image — but now it has the line of code on top as well)…I have told the client this will be resolved shortly, so I do hope that you can offer some troubleshooting suggestions

Viewing 15 replies - 46 through 60 (of 79 total)