Jackie Chan
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How to create a collapsable sidebarThanks that’s made it much clearer for me, as for the sidebar itself; it will include a menu which when collapsed to the thinner sidebar will show icons rather than the page titles, would you just approach this with CSS?
Forum: Fixing WordPress
In reply to: Add a hyperlink to a div class@corrinarusso thanks for your reply, i want to target the class using javascript/jquery/php to add the hyperlink as i can’t go in and adjust the html/css as it’s a slide set up in a module.
So i’m basically looking for a general way to add hyperlinks to a specific class via some sort of function,
Hope that makes more sense
Forum: Plugins
In reply to: [WooCommerce] Add Tax to basket total (including shipping)Thanks for your reply, yes only problem is it changes the “flat rate” total to the total plus tax (which is the correct total but i’d rather it be added to the basket total rather than appearing as the flat rate cost)
Forum: Fixing WordPress
In reply to: Register Custom Post Type as Standard PostsThanks Steve, their support is good for the basics but anything slightly more tricky they refuse to help which is why i’ve reverted back to good ol’ WP support.
Forum: Fixing WordPress
In reply to: Register Custom Post Type as Standard PostsHi Steve, thanks for your reply; the theme developer (Elegant Themes) wasn’t very helpful. I’ve almost done it with the code below, which allows me to choose the category from within my slider module but i’m getting this within the slider:
“No Results Found
The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.”This is the code to include the category:
add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if( is_category() ) { $post_type = get_query_var('post_type'); if($post_type) $post_type = $post_type; else $post_type = array('nav_menu_item', 'post', 'country_walks'); // don't forget nav_menu_item to allow menus to work! $query->set('post_type',$post_type); return $query; } }
Is adding a taxonomies essential to the custom post type as i’ve not done this..
Here’s my post type code:
function cptui_register_my_cpts_country_walks() { /** * Post Type: Country Walks. */ $labels = [ "name" => __( "Country Walks", "custom-post-type-ui" ), "singular_name" => __( "Walks", "custom-post-type-ui" ), "view_item" => __( "View Page", "custom-post-type-ui" ), "view_items" => __( "View Walks", "custom-post-type-ui" ), ]; $args = [ "label" => __( "Country Walks", "custom-post-type-ui" ), "labels" => $labels, "description" => "", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => true, "rest_base" => "", "rest_controller_class" => "WP_REST_Posts_Controller", "has_archive" => false, "show_in_menu" => true, "show_in_nav_menus" => true, "delete_with_user" => false, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "rewrite" => [ "slug" => "country_walks", "with_front" => true ], "query_var" => true, "supports" => [ "title", "editor", "thumbnail", "excerpt", "custom-fields", "page-attributes", "post-formats" ], "taxonomies" => [ "category" ], ]; register_post_type( "country_walks", $args ); } add_action( 'init', 'cptui_register_my_cpts_country_walks' );
- This reply was modified 4 years, 10 months ago by Jackie Chan.
- This reply was modified 4 years, 10 months ago by Jackie Chan.
- This reply was modified 4 years, 10 months ago by Jackie Chan.
- This reply was modified 4 years, 10 months ago by Jackie Chan.
- This reply was modified 4 years, 10 months ago by Jackie Chan.
Forum: Fixing WordPress
In reply to: Help hiding code on websiteThanks, i like your thinking! appears to have worked perfectly; didn’t even need to override ??
Forum: Requests and Feedback
In reply to: Chane wp-login.phpYou can manually change it by following this tutorial https://www.elegantthemes.com/blog/resources/how-to-obscure-your-sites-login-page-without-a-plugin
But i highly recommend just using https://en-gb.www.ads-software.com/plugins/wps-hide-login/ as if there’s any issues you can simply delete the plugin to revert back to wp-admin, and it’s lightweight.
Hope that helps
Forum: Fixing WordPress
In reply to: Building a page based on templateNot sure if this will help, but if you’ve created a page template, when you edit a page on the right side of your screen there’s “Page Attributes” you can select your template there..
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Price (Changes sinces update)Thanks for your reply, i think it’s just a basic understanding of the array needed but PHP is slightly beyond my scope; all replies welcome ??
Forum: Fixing WordPress
In reply to: Woocommerce Price (Changes sinces update)Thanks Steve, reposted ??
Forum: Fixing WordPress
In reply to: Gallery within a gallery pluginThanks for your response Felipe i’ll check them out
Forum: Fixing WordPress
In reply to: Make Logo Bigger@tera12 Glad to help!
Forum: Fixing WordPress
In reply to: Help replacing an image in a custom theme@kinseykahlo Your welcome, did you manage to solve it?
Forum: Plugins
In reply to: [WooCommerce] Looking for opinions on my eCommerce websiteI think it looks much better now, subtle changes but makes navigating the content much easier.
Another thing to change: the columns in your footer needs some sort of padding/a margin on the left as it sits too far left and gets lost on the screen when not viewing on a wide window if that makes sense.
(Basically shrink your browser window & you should see what i mean)
Forum: Plugins
In reply to: [WooCommerce] Show tax total for each item within the cartThanks for your reply @lorro i’m new to PHP are you able to elaborate on the above?