Forum Replies Created

Viewing 15 posts - 16 through 30 (of 182 total)
  • Posted in:
  • in reply to: Tried and failed to add .js script / library #221579
    bongobong
    Member
    Post count: 184

    Hi guys,
    Well, making progress. But I still believe i’m making errors in the code;
    getting an error:
    Fatal error: Cannot redeclare sf_admin_scripts() (previously declared in /home3/james948/public_html/the-escalator.com/wp-content/themes/joyn-child/functions.php:308) in /home3/james948/public_html/the-escalator.com/wp-content/themes/joyn/functions.php on line 310

    Here is what I have in my child functions.php so far.

    function joyn_child_enqueue_styles() {
    wp_enqueue_style( ‘joyn-parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘style.css’, get_stylesheet_directory_uri() . ‘/css/style.css’ );
    wp_enqueue_style( ‘style.scss’, get_stylesheet_directory_uri() . ‘/css/style.scss’ );
    }

    function sf_enqueue_scripts() {
    wp_register_script(‘jscroll-probe.js’, get_stylesheet_directory_uri(). ‘/js/iscroll-probe.js’, ‘jquery’, NULL, TRUE);
    wp_register_script(‘script.js’, get_stylesheet_directory_uri() . ‘/js/script.js’, ‘jquery’, NULL, TRUE);
    }
    wp_enqueue_script(‘jscroll-probe.js’);
    wp_enqueue_script(‘script.js’);

    add_action( ‘wp_enqueue_scripts’, ‘joyn_child_enqueue_styles’ );

    in reply to: Tried and failed to add .js script / library #221566
    bongobong
    Member
    Post count: 184

    Thanks so much.
    Learning loads.

    But still not working; this is what I have

    /* LOAD PARENT THEME STYLES
    ================================================== */
    function joyn_child_enqueue_styles() {
    wp_enqueue_style( ‘joyn-parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘style.css’, get_stylesheet_directory_uri() . ‘/css/style.css’ );
    wp_enqueue_style( ‘style.scss’, get_stylesheet_directory_uri() . ‘/css/style.scss’ );
    }

    function sf_enqueue_scripts() {
    wp_register_script(‘jscroll-probe.js’, get_stylesheet_directory_uri(). ‘/js/iscroll-probe.js’, ‘jquery’, NULL, TRUE);
    wp_register_script(‘script.js’, get_stylesheet_directory_uri() . ‘/js/script.js’, ‘jquery’, NULL, TRUE);
    }
    add_action( ‘wp_enqueue_scripts’, ‘joyn_child_enqueue_styles’ );

    in reply to: Tried and failed to add .js script / library #221560
    bongobong
    Member
    Post count: 184

    Thanks folks.

    So I’ve read all the materials. Here is what I have in my functions.php file in my child theme. But it doesn’t seem like the libraries are being loaded:
    I’ve put the js into
    join-child/js/
    and the css into
    join-child/css/

    /* LOAD PARENT THEME STYLES
    ================================================== */
    function joyn_child_enqueue_styles() {
    wp_enqueue_style( ‘joyn-parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘joyn-parent-style’, SF_LOCAL_PATH . ‘/css/style.css’ );
    wp_enqueue_style( ‘joyn-parent-style’, SF_LOCAL_PATH . ‘/css/style.scss’ );
    }

    function sf_enqueue_scripts() {
    wp_register_script(‘jscroll-probe.js’, SF_LOCAL_PATH . ‘/js/iscroll-probe.js’, ‘jquery’, NULL, TRUE);
    wp_register_script(‘script.js’, SF_LOCAL_PATH . ‘/js/script.js’, ‘jquery’, NULL, TRUE);
    }
    add_action( ‘wp_enqueue_scripts’, ‘joyn_child_enqueue_styles’ );

    in reply to: Tried and failed to add .js script / library #221532
    bongobong
    Member
    Post count: 184

    Thanks so much Rui.
    Would this work?

    function my_scripts_method() {
    wp_enqueue_script(
    ‘jscroll-probe.js’,
    get_stylesheet_directory_uri() . ‘/js/jscroll-probe.js’,
    array( ‘jquery’ )
    );
    }
     
    add_action( ‘wp_enqueue_scripts’, ‘my_scripts_method’ );
     

    in reply to: Modal blog posts #220254
    bongobong
    Member
    Post count: 184

    I’d like to have a blog post open, instead of on another page, in an iframe (with the header and footer cut off)
    like http://www.usatoday.com/

    Any idea how I might achieve this?

    in reply to: Better Modals #219830
    bongobong
    Member
    Post count: 184

    Just to add a +1 this would be a FANTASTIC addition.

    in reply to: What is a SPB Section? #218288
    bongobong
    Member
    Post count: 184

    Is there any chance we’ll be able to use custom fields in the spb sections?
    For instance, i’d love to be able to have an spb section where I’ve written “And this is the ***” and have a field within the spb section where I can type in ***

    in reply to: Suddenly stopped being boxed #213347
    bongobong
    Member
    Post count: 184

    Ignore the above. I don’t know what happened; possibly zoom on my computer but I discoverd it was boxed; but for some reason it had got huge. Thanks.

    in reply to: Testimonials slider cut off #209857
    bongobong
    Member
    Post count: 184

    See attached picture

    Attachments:
    You must be logged in to view attached files.
    in reply to: Testimonials slider cut off #209853
    bongobong
    Member
    Post count: 184

    It needs to be automatically changing size, not having a minimum height.

    in reply to: Testimonials slider cut off #209851
    bongobong
    Member
    Post count: 184

    Great. Any chance you could ask for this to be fixed in a future version; it’s been driving me nuts for a year now!

    in reply to: Can't work out how to stop hover over on images #193811
    bongobong
    Member
    Post count: 184

    I sorted it. I went thermonuclear and added a bunch of CSS. I bet half of this is pointless but here is what I added. I got sick of nothing working.

    .bright-design figure.animated-overlay:hover,
    .bright-design figure.animated-overlay:hover > img,
    .bright-design figure.animated-overlay:hover .multi-masonry-img-wrap > img,
    .bright-design figure.animated-overlay.overlay-alt:hover,
    .bright-design figure.animated-overlay.overlay-alt:hover .figcaption-wrap {
    -webkit-filter: none !important;
    -moz-filter: none !important;
    filter: none !important;
    border-width: 0px !important;
    border: 0px !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    }

    in reply to: Can't work out how to stop hover over on images #193804
    bongobong
    Member
    Post count: 184

    Weird. It’s not working for me.
    I changed the “mone” (typo) to none too.
    But it’s still not working. Weird. Any ideas.

    bongobong
    Member
    Post count: 184

    Did you manage to resolve this? if so, how? Having the same issue.

    bongobong
    Member
    Post count: 184

    I’ve disabled the plugin and it’s still the same.

Viewing 15 posts - 16 through 30 (of 182 total)