Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Forum: Hacks
    In reply to: Calling file with javascript

    If it’s a jquery script, then jquery is ‘pre-registered’ and packaged with the WP core. You should simply be able to enqueue it…

    wp_enqueue_script( 'jquery' );

    then enqueue your script adding jquery as a dependency…

    wp_enqueue_script( 'my-script', '/path/to/script', array( 'jquery' ) );

    Check first to see if jquery is loading by default in your theme. If so then just add the second line to your functions.php in a function and fire on init…

    function my_init() {
       if( !is_admin() ):
          wp_enqueue_script( 'my-script', '/path/to/script', array( 'jquery' ) );
       endif;
    }
    add_action( 'init', 'my_init' );

    WordPress is different than joomla in that there are no “magic” installation packages with individual themes that install WordPress and the theme together, like most joomla templates include.

    The theme developer *should* have provided documentation and some will even include demo xml files, but, as Chip mentioned above, the best place to get help for this would be from the theme developer…

    Well for one, you have no closing </head> tag and no opening <body> tags….I would look at this first before anything else…

    The ‘yellow bar’ is an image in the theme. It will only stretch horizontally and then only to as wide as the div.inside element will allow it, (952px i think?). Without some additional coding, you won’t be able to fit that many menu items in that bar with titles as long as they are.

    You have a limited amount of space. You can either shorten your menu items or add some categories and dropdown functionality perhaps…

    You shouldn’t have any issues with the versions of php that you are mentioning…

    You can go into your database and make sure that the Home and Siteurl are correct. If you are not comfortable with browsing and editing the database directly, then you can try the suggestion below, which may help get the site back up so that you can correct it the “right way”.

    Either through an FTP client, or your GoDaddy file manager, locate the wp-config.php file (in the root directory of your WordPress installation). Inside that file, add the following two lines to the bottom of that file.`

    define( 'WP_HOME', 'https://www.yourpath.com' );
    define( 'WP_SITEURL', 'https://www.yourpath.com' );

    Once you have that set, you should then be able to access the dashboard of the admin area. Ideally, you should make this change in the database, because once you make the change in the wp-config.php file, the option fields inside the admin dashboard will be disabled. If you choose to edit the file rather than edit the db, just make sure that you change the file manually should your path change in the future.

Viewing 6 replies - 1 through 6 (of 6 total)