DesignLoud
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Creating a Default Page from a Templatepage.php is your themes default page template. You can go into the theme folder and overwrite/duplicate page.php to modify it to suite your needs.
More info: https://codex.www.ads-software.com/Page_Templates
Forum: Fixing WordPress
In reply to: Asking for ftp credentials after moving to vps serverMaking sure your WP folders are writable usually solves this. More info here: https://codex.www.ads-software.com/Changing_File_Permissions
If your folders are not writable then you will keep having to login before making any changes to your server via the WP admin panel
Usually takes a few hours or up to 24 hours for servers to propagate. Even though they may have propagated in your area, they may not have in her area.
Also to speed things up make sure she clears her browsers recent history and cache to ensure she is getting the latest version.
Forum: Fixing WordPress
In reply to: search urlTry adding this to your themes functions.php file
function search_url_rewrite_rule() { if ( is_search() && !empty($_GET['s'])) { wp_redirect(home_url("/search/") . urlencode(get_query_var('s'))); exit(); } } add_action('template_redirect', 'search_url_rewrite_rule');
Note the /search/ section is what you will be renaming your search url too
As seen here: https://bavotasan.com/2011/rewrite-search-result-url-for-wordpress/
Forum: Fixing WordPress
In reply to: Inserting Image in Header in Light Clean Blue ThemeLooking at the source code for that element it looks like your image is not loading.
here is what the source shows:
<div id="headLogo"> <img width="143" height="64" alt="North Miami SEO and Hosting" src="images/LaurenImages/logo.png"> </div>
With that said I dont know if you have theme options with the Light Clean Blue Theme. If so you should be able to just go in and upload your own logo.
If it doesnt then I would suggest one of two things.
1- uploading your logo to the WordPress Media Library. Then click on edit when it is finished uploading and to the right grab the file url. Copy that url and then you could go to Appearance > Editor. Look on the right for the Header.php file and search for something similar to this line:
<div id="headLogo"> <img width="143" height="64" alt="North Miami SEO and Hosting" src="<?php echo get_template_directory_uri(); ?>/images/logo.png"> </div>
and replace the img src with your file path *remove the php line completely so you dont get an error:
<div id="headLogo"> <img width="143" height="64" alt="North Miami SEO and Hosting" src="https://www.PASTE-YOUR-FILE-PATH-HERE.png"> </div>
OR
2 – Alternatively if you have access to the FTP you can just go in your themes folder then navigate to the images folder and replace logo.png with your logo (I would call it logo.png to avoid having to update other files).
Forum: Fixing WordPress
In reply to: search urlForum: Plugins
In reply to: [Woocommerce Radio Buttons] adding prices next to radio buttonsHey guys, you can check out https://designloud.com/add-prices-next-to-woocommerce-variations/ for details. Hope this solves your problem ??
Forum: Fixing WordPress
In reply to: Query posts from taxonomyAhh, I got it now.. You rock dude, go have a drink on me ??
Thanks for your help
Forum: Fixing WordPress
In reply to: Query posts from taxonomyOR could I just create a taxonomy-properties_community.php template file and include a loop like you suggest and it will work the magic automatically by queuing the posts from whatever term is being queried?
Forum: Fixing WordPress
In reply to: Query posts from taxonomyThanks Christian, I knew I could create a template for each term but that would be difficult because what happens when client adds a new term and then there is no template for it. I guess what would be ideal was to query the database to see what term is being asked for and then display posts associated with that term. This way it would be more “dynamic” and no need to have a template that matches each term?
Does that make sense or am I correct in thinking on that approach? Not sure how to implement it though, seems there should be an easier way to do this other than term-templates
Forum: Plugins
In reply to: [Woocommerce Radio Buttons] adding prices next to radio buttonsJust in your themes functions.php file, may need to take out the php opening and closing tag depending on your theme
Forum: Plugins
In reply to: [Woocommerce Radio Buttons] Any way to alter the 'Choose An Option…' text?Hi blokey, I would just copy the variables.php file from our plugin and put it in your themes -> woocommerce -> templates directory. Then change the text in that file. It should take priority over any of the other variables.php files found on your server.
If that doesnt work then you can just change the text in the plugin, if there are any more updates they will be for compatibility reasons. But the above approach would be my suggestion.
Hope that helps you. I dont think there are any actions or filters you can hook into for that but I may be wrong.
Forum: Plugins
In reply to: [Woocommerce Radio Buttons] adding prices next to radio buttonsYes, add this to your functions.php file
<?php //show price next to variations in woocommerce add_filter( 'woocommerce_variation_option_name', 'display_price_in_variation_option_name' ); function display_price_in_variation_option_name( $term ) { global $wpdb, $product; $result = $wpdb->get_col( "SELECT slug FROM {$wpdb->prefix}terms WHERE name = '$term'" ); $term_slug = ( !empty( $result ) ) ? $result[0] : $term; $query = "SELECT postmeta.post_id AS product_id FROM {$wpdb->prefix}postmeta AS postmeta LEFT JOIN {$wpdb->prefix}posts AS products ON ( products.ID = postmeta.post_id ) WHERE postmeta.meta_key LIKE 'attribute_%' AND postmeta.meta_value = '$term_slug' AND products.post_parent = $product->id"; $variation_id = $wpdb->get_col( $query ); $parent = wp_get_post_parent_id( $variation_id[0] ); if ( $parent > 0 ) { $_product = new WC_Product_Variation( $variation_id[0] ); return $term . ' (' . woocommerce_price( $_product->get_price() ) . ')'; } return $term; } ?>
Forum: Plugins
In reply to: [Woocommerce Radio Buttons] Affecting review functionHey jay, did you ever get this worked out? I had someone have a similar problem and have a possible fix for you to try if not.
Thanks
Forum: Plugins
In reply to: [Woocommerce Radio Buttons] Product Image DisappearsThat is strange, sounds like possibly a JS conflict, can you link me to your site? Are you running the latest versions of Woocommerce/Woo Radio Buttons/Wordpress? Lastly I would try activating the default theme to see if it fixes itself, if so your problem is in a theme file somewhere. If not then try deactivating your plugins and activate them one at a time until you find the conflicting plugin.