Forums › Forums › Search & Filter Pro › Trying to edit results.php to show results in grid
- This topic has 28 replies, 3 voices, and was last updated 8 years, 3 months ago by Anonymous.
-
Anonymous(Private) June 17, 2016 at 2:43 pm #48768
Thank you very much!! It was GREAT speaking with you!! You have been a tremendous help!
I checked out the link, and I would put that code in a JS file, or should I put that in the functions.php?
That is where I can getting hung up on, now.
(I know I can’t just copy/paste is that expect it to work, but once I get it working, I will post it here, for others to use 🙂
Thank you again!
Trevor(Private) June 17, 2016 at 2:53 pm #48769It needs to be loaded as custom js into your page header. Some themes have a setting where you can do this (inside script tags), or you can put the needed js inside a file and enqueue it from the theme functions.php. Let us say that you put it in a file called my_sandf_reloader.js and that file was also in the same folder as the theme functions.php file, the enqueue code to put in that functions.php file would be like this:
add_action('wp_enqueue_scripts','my_sandf_reloader',100); function my_sandf_reloader(){ wp_register_script( 'my_sandf_reloader_js', get_stylesheet_directory_uri().'/my_sandf_reloader.js', array('jquery'), '1.0.0', true ); wp_enqueue_script( 'my_sandf_reloader_js' ); }
Trevor(Private) June 17, 2016 at 4:54 pm #48784How did you call the masonry file into the page before?
What I meant was to put the code that you need from the FAQ page of ours into a file called ….
And the call that from the functions file to load it to the page.
Call me on Skype (make it quick as I have to go out).
-
AuthorPosts