focallocal
Forum Replies Created
-
sorry for the code. i clicked the wrong tab and cant see a way to delete it
function bbp_enqueue_style( $handle = '', $file = '', $dependencies = array(), $version = false, $media = 'all' ) { // No file found yet $located = false; // Trim off any slashes from the template name $file = ltrim( $file, '/' ); // Make sure there is always a version if ( empty( $version ) ) { $version = bbp_get_version(); } // Loop through template stack foreach ( (array) bbp_get_template_stack() as $template_location ) { // Continue if $template_location is empty if ( empty( $template_location ) ) { continue; } // Check child theme first if ( file_exists( trailingslashit( $template_location ) . $file ) ) { $located = trailingslashit( $template_location ) . $file; break; } } // Enqueue if located if ( !empty( $located ) ) { $content_dir = constant( 'WP_CONTENT_DIR' ); // IIS (Windows) here // Replace back slashes with forward slash if ( strpos( $located, '\\' ) !== false ) { $located = str_replace( '\\', '/', $located ); $content_dir = str_replace( '\\', '/', $content_dir ); } // Make path to file relative to site URL $located = str_replace( $content_dir, WP_CONTENT_URL, $located ); // Enqueue the style wp_enqueue_style( $handle, $located, $dependencies, $version, $media ); } return $located; } /** * Enqueue a script from the highest priority location in the template stack. * * Registers the style if file provided (does NOT overwrite) and enqueues. * * @since bbPress (r5180) * * @param string $handle Name of the script. * @param string|bool $file Relative path to the script. Example: '/js/myscript.js'. * @param array $deps An array of registered handles this script depends on. Default empty array. * @param string|bool $ver Optional. String specifying the script version number, if it has one. This parameter * is used to ensure that the correct version is sent to the client regardless of caching, * and so should be included if a version number is available and makes sense for the script. * @param bool $in_footer Optional. Whether to enqueue the script before </head> or before </body>. * Default 'false'. Accepts 'false' or 'true'. * * @return string The script filename if one is located. */ function bbp_enqueue_script( $handle = '', $file = '', $dependencies = array(), $version = false, $in_footer = 'all' ) { // No file found yet $located = false; // Trim off any slashes from the template name $file = ltrim( $file, '/' ); // Make sure there is always a version if ( empty( $version ) ) { $version = bbp_get_version(); } // Loop through template stack foreach ( (array) bbp_get_template_stack() as $template_location ) { // Continue if $template_location is empty if ( empty( $template_location ) ) { continue; } // Check child theme first if ( file_exists( trailingslashit( $template_location ) . $file ) ) { $located = trailingslashit( $template_location ) . $file; break; } } // Enqueue if located if ( !empty( $located ) ) { $content_dir = constant( 'WP_CONTENT_DIR' ); // IIS (Windows) here // Replace back slashes with forward slash if ( strpos( $located, '\\' ) !== false ) { $located = str_replace( '\\', '/', $located ); $content_dir = str_replace( '\\', '/', $content_dir ); } // Make path to file relative to site URL $located = str_replace( $content_dir, WP_CONTENT_URL, $located ); // Enqueue the style wp_enqueue_script( $handle, $located, $dependencies, $version, $in_footer ); } return $located; } /** * This is really cool. This function
if you are still monitoring this Jennifer could you please provide details about where to put that code, its exactly what i’ve been looking for.
thanks
Forum: Fixing WordPress
In reply to: avatar in toolbar is too large and stretching the barthanks, i followed your instructions.
unfortunately it seems to be buddypress. unfortunately because i’ve already posted this question in their forums 4 times without reply, so i posted here in case it was related to the toolbar itself.
Forum: Plugins
In reply to: [HMS Testimonials] users get "HTTP error" when uploading photo'sah yes, that seems to be it. i made a menu linking the user to the backend submission form (the url in my browser) rather than using the short code in a page.
the issue doesnt occur for me as an admin so that is most likely the issue. i’ll change it now, thanks very much!
and i love the testimonials plugin
Forum: Themes and Templates
In reply to: removing 'response 2.0 options' from the toolbar.i’m sure deactivating the theme would get rid of it as it’s directly from the theme, but i’d prefer not to do that.
here’s a screen shot: https://i.imgur.com/5i1YHw3.png
i’d like to remove the ‘response 2.0 options’ in the top left corner.
thanks
p.s. if anyone knows why the avatar is appearing double sized that’s also something i’m trying to figure out.
Forum: Plugins
In reply to: [HMS Testimonials] users get "HTTP error" when uploading photo'ssorry i wasnt clear about the read more and website links.
i’ve selected the options not to use those features but they still appear as fields for users in the testimonial submission form. its not a huge issue, but i wondered if perhaps the two things were related?
thanks again.
Forum: Plugins
In reply to: [HMS Testimonials] users get "HTTP error" when uploading photo's