Is this WordPress code causing page weirdness? Can’t scroll to bottom

It was Stellar parallax. Here is the offending code: // Stellar parallax var $ = jQuery.noConflict(); $(function(){ $.stellar({ horizontalScrolling: false, verticalOffset: 40 }); }); I now need to go away and figure out what in this code was giving me the problem. Thanks for the prompts of where to look.

How do I return an image from a script

Fatal error: Call to undefined function __() in /homepages/5/d367772185/htdocs/rodandfly/wp-admin/includes/file.php on line 13 Where is your code? file.php is expecting __() to be defined which it should be if your loading it from within an activated plugin. The best way to do what your trying to do is use either media_handle_sidelaod() or media_sideload_image() which will cause … Read more

How to use plugins_url() inside PHP stylesheet file [duplicate]

Try background:url(<?php echo plugins_url().’/myimgfolder/my_img.png’; ?>) no-repeat <?php echo $x_position.’ ‘.$y_position; ?>; It will allow you to echo the PHP elements into your style. EDIT: You also need to close the file, you’re trying to mix unwrapped PHP with your CSS. Your PHP variables aren’t escaped either. I’ve tested the code below, and it works fine: … Read more

How to pass username into form that sends data to database

If you want to output the $id, you need to echo. Also be sure to use esc_attr() as a good security practice. <input type=”hidden” name=”id” value=”[insert_php]echo esc_attr( $id );[/insert_php]”> In addition, as was noted in another answer, you’re calling it an ‘id’, but you’re actually using the login (username). If all you need is the … Read more

Shortcode not passing variable to included file

Ok, so somehow I got it working by changing it to this: It looks like it didn’t like ‘the_clientId’. Maybe it just doesn’t like capital letters???? [insert-form form_location=”form.php” identification_number=”12345″] function insert_the_form($atts){ $form_base = plugin_dir_path(__DIR__); // Shortcode attributes & options $atts = shortcode_atts( array( ‘form_location’ => ‘NULL’, ‘identification_number’ => ‘NULL’ //Variable for client ID ), $atts, … Read more