Forum Replies Created

Viewing 15 replies - 1 through 15 (of 61 total)
  • Thread Starter Maracas1970

    (@maracas1970)

    Brilliant. Thanks Kathryn, that has done the trick nicely.

    Regards

    Thread Starter Maracas1970

    (@maracas1970)

    Thanks Angelo, so looking at this i’m not sure, do I need to create a new template and rename it? Or can i just add another file upload on the existing template you referenced above?

    If all I need to do is add another file upload button what code do I need to do this please? Is it simply a media upload form field? I am happy to purchase the plugin if the necessary functionality can be applied.

    Thanks for your time and input, really liking thw plugin so far.

    Regards

    Thread Starter Maracas1970

    (@maracas1970)

    Yes that’s correct.
    I would like the ability to upload a ticket as well as an image whether it’s me in the admin area creating an event or someone uploading an event through the front end form. So i guess it’d be an image / file upload.

    Thread Starter Maracas1970

    (@maracas1970)

    Hi

    Still haven’t found a solution for this, any help or pointers in the right direction would be very much appreciated.

    Regards

    Marcus

    Thread Starter Maracas1970

    (@maracas1970)

    Hello Pyael

    What i ended up doing was wrapping the header in a div with a
    width and height of 100% and set a background image to repeat-x;

    So the div basically encompasses the header with the navigation contained within it. This is all in header.php

    You can see it better if you look at it in firebug.

    Hope that helps.

    Thread Starter Maracas1970

    (@maracas1970)

    Hi alcymyth.

    Thankyou, the problem is the container i made to wrap the header/branding in. It`s called #headerwrap, and envelops the branding area. The problem only occurs when minimizing the browser window.

    It seems to look OK at varying screen resolutions, but just bugs out at the top right hand corner when minimized. When pulling the browser window around, and pulling the horizontal scroll bar to the right. Hope that makes sense ??

    Also, should i be playing around with parent stylesheets?

    Thanks again

    Marcus

    Thread Starter Maracas1970

    (@maracas1970)

    Sorry, i should have posted that stuff. Just thought it may have been something that was a known quantity, and easy to do.

    Anyway, i have got it working mostly, albeit the right hand side of the container for the header i made does not extend full width when the page is minimized. Basically, if you pull the bottom right of the browser around making the page smaller, some white-space appears to the right of the blue header strip, this doesn’t happen when just viewing on different screen sizes, mobile is OK too. Just when you resize the page.

    URL: https://www.gotodesigns.co.uk

    here is my header: https://pastebin.com/1qSt3p59

    My stylesheet: https://pastebin.com/cBEFT1XK

    As you will see, i have moved the header out of the page, and body to achieve what i have so far.

    I have firebugged it, I think it`s something in the CSS somewhere, just cant work out what.

    Thankyou for your time.

    regards

    Marcus

    Thread Starter Maracas1970

    (@maracas1970)

    No problem Ryan

    Main thing is its working and im a happy chappy. And anyone else finding the thread will have a clear example to work from. Thanks Ryan!

    Marcus

    Thread Starter Maracas1970

    (@maracas1970)

    I’m going to post the code here actually, just incase anyone else stumbles on this post in the near future and it can be of help.

    Adding this to my child themes functions.php worked:

    add_action('wp_head', 'my_register_jquery_function');
    function my_register_jquery_function() {
    wp_deregister_script('jquery');
    wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '1.7.1');
    wp_enqueue_script('jquery');
    }
    add_action('wp_enqueue_scripts', 'my_register_jquery_function');
    
    wp_enqueue_script(
      'slipSlap'
      , get_stylesheet_directory_uri() . '/js/slipSlap.js'
      , array('jquery')
    );
    Thread Starter Maracas1970

    (@maracas1970)

    Seem to have it working now, finally!!

    Neglected to add the add_action(‘wp_enqueue_scripts’, ‘my_register_jquery_function’);

    I will try and repeat the process with a couple more plugins to be sure, and report back and hopefully mark the topic as resolved!

    Many thanks for your help RedEarRyan

    Marcus

    Thread Starter Maracas1970

    (@maracas1970)

    Thanks for your help and time RedEarRyan, very appreciated.

    One thing though, i actually removed all trace of calls to jQuery i could find, and viewed my source code only to see that it is being pulled from the parent theme of my child, specifically from here: https://www.gotodesigns.co.uk/wp-includes/js/jquery/jquery.js?ver=1.7.1

    And when i go into the console and type in “jQuery’ it shows up with function() So im assuming its actually running. When i enqueued the SlipSlap.js with aforementioned method, it was not found. ReferenceError: slipSlap is not defined

    Now, am i right in saying i only need to rename the stylesheet link in the child theme so it refers to the childs folder location and not the parent? Theres going to be no double loading issues or anything?

    I just cannot for the life of me get one bit of jquery to run. I have tried the method you described as well..

    Shall i post some pastebin code up of my header & functions pages. maybe you can see something i cant.

    Thanks again

    Marcus

    Thread Starter Maracas1970

    (@maracas1970)

    For some reason i don’t see the edit button on the post.

    As an aside, does it or should it matter that some scripts dont have the “jQuery prefix” some of my scripts are just scriptname.js
    as opposed to jquery.scriptname.js, can this cause conflicts?

    Thanks

    Thread Starter Maracas1970

    (@maracas1970)

    Thanks Ryan.

    So as I understand it from your post. I add the ‘after’ script you posted in functions.php in my child theme. Seems straight forward enough.
    Now after this what do I need to include in functions.php to call my individual plug ins, or do these need to be called in the header. And as the plugins I’ve downloaded reside in my child themed js folder, do I need to call them with bloginfo or stylesheet or a combination, an example would be really handy.

    Also I watched a Chris coyier video lastnight where he placed the calls to plugins in the footer, is this something I need to do?

    Most of my confusion is arising from where to actually place the scripts and as its a child theme where to call them from.

    I will try your example in the meantime and see if it clears anything up.

    Thanks for helping.

    Marcus

    Thread Starter Maracas1970

    (@maracas1970)

    Actually just tried several other scripts cant get a damn thing to run..

    Forum: Plugins
    In reply to: jQuery caption anyone?
    Thread Starter Maracas1970

    (@maracas1970)

    Thanks wpismypuppet

    I will go back and try that, i have just used a rollover image solution for now, which if im honest is probably fine anyway.

    But i shall go back and retry your solution in the interest of furthering my WP/jQuery knowledge.

    Thanks again

    Marcus

Viewing 15 replies - 1 through 15 (of 61 total)