Mikael Boldt
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twelve] Search box in menu barI found a solution on http://www.wprecipes.com/how-to-automatically-add-a-search-field-to-your-navigation-menu
Adding the following to the child theme functions.php:
function add_search_box($items, $args) {
ob_start();
get_search_form();
$searchform = ob_get_contents();
ob_end_clean();$items .= ‘
< li >’ . $searchform . ‘< /li >
‘;return $items;
}
add_filter(‘wp_nav_menu_items’,’add_search_box’, 10, 2);Forum: Plugins
In reply to: [Event Calendar] Translate "SHOW TYPE"No! – You cannot from change this under Calendar Options
You have to visit Calendar Categories.Forum: Plugins
In reply to: [WooCommerce] Downgrade Woocommerce without losing datause your backup.
the backup the programme asked you to make before updatingor are you one of those real guys?
Real guys do not take backup – they cry!Forum: Themes and Templates
In reply to: Which Template file do I edit ?You have too many items in your banner or the wording is too long, that is why the banner has started a second row.
possible solutions:
a) fever items:b) shorter names: Virksomhedprofil -> Om
Leveradører & Partnere -> Partnerec) make the template wider by correcting style.css
Forum: Themes and Templates
In reply to: twenty twelve localization not workingThat’s because the theme uses many WordPress core text strings which have been translated in the Danish version of WordPress.
Maybe.
But now I found the language file for TwentyTwelve so maybe it will help.
/wp-content/languages/themes/
Strange way to hide the language-files for standard themes, while other themes have their language-file in a Language-folder inside the theme.
/wp-content/themes/my-favourite-theme/languages/
Forum: Themes and Templates
In reply to: twenty twelve localization not workingI am setting up my blog using the Danish WordPress and TwentyTwelve. For this theme there is no Danish language file, but fortunately it is easy to establish one by using the plugin: “Code Styling Localization”.
and now something strange appears!
Some of the phrases are already translated into Danish although there is no language file.
I can then translate it as missing by using the above mentioned plugin, but I can also overwrite some of the existing translations to something that suited my language.For example, “Leave a Reply”, which I would like to change the “Post a comment”. So I change it, but my translation is used only 1 of the 6 places as the phrase is used in the theme. and so it is with many of the pre-translated Danish words and phrases.
How can I fix the above?
Forum: Fixing WordPress
In reply to: How to make corrections to a plugin stylesheet ?Thank you
already using firebug -an excellent tollForum: Plugins
In reply to: WoocommerceYou mean “…for free”?
Woocommerce is a business
I have no problems with businesses who tries to earn money.and I have no problem in investing in time and money in establishing a webshop, because this is my business and investment is tax-deductible.
My first webshop – for testing was established with twentyten theme, and I had no problems to get Woocommerce to act accordingly, once I learned how to turn on the use of RAM.
You have 2 options: spend some hours in personalize your own WP-theme or spend some small money to buy others themes.
Thank you! It works fine
I will study further how add_filter() works in order to understand.
PS. Maybe this should be introduced in the codex on child-themes?
I think that child-theme is a brilliant idea to modify themes and be able to save my personal changes without making it too complicated to do later update. Here is an example:
function twentyten_page_menu_args( $args ) {
$args[‘show_home’] = true;
return $args;
}(in the above just replace twentyten, with twentyeleven, twentytwelve – its the same function)
I am making a new WP-site, which will be an online handbook (a lot of Pages -only a few Posts) and I want to replace “Home” in the navigation bar with the word “Instroduction”. In order to do that, I want make the following changes to the function:
function twentyten_page_menu_args( $args ) {
$args[‘show_home’] = ‘Introduction’;
return $args;
}But this is not possible.
I don’t know if it is possible in the woocommerce system to use a plugin like http://wordpress.org/extend/plugins/wordpress-access-control/
but this plugin will hide pages and posts for non-registred persons (and visa versa).First update to the latest version of WP (3.4.1)
Second update to the latest version of WooCommerce (1.6.5.1)and keep your all your plugins updated.
then tell us about your problems related to the use and presentation at your web-site.
If you haven’t had sale since 2011 then I see 3 problems
1) nobody knows about your web-shop – Be active, use your blog-tool make some news, link to your facebook account so your friends can see and give thumbs.
2) you’re selling crap – Sell products which people wants
3) you’re too expensive – what is the price level at your competitors? both in real shops and on the web.
I do not know how to do it exactly but inside woocommerce_function.php is a fucntion: function woocommerce_process_login() and at the bottom is a line: wp_redirect(get_permalink(woocommerce_get_page_id(‘myaccount’)));
Solution number one is to change the word ‘myaccount’ to something else.
I cannot recommend this because it is a nightmare to keep track on own changes every time there is an official update.Solution number 2 may be!
May be it is possible to cancel the function woocommerce_process_login() and replace it with your own.There is a system of elimination/replacing of functions in the theme- system parent/child. if a plugin function is considered to be a child theme function, then you should be able to copy the function in to your theme functions.php and add your changes here.
but now I’m guessing
Forum: Plugins
In reply to: [WooCommerce] [Plugin: WooCommerce] Customising the shop base pageif you want to remove the dropdown sort option you shall open your theme functions.php and add following line:
remove_action( 'woocommerce_pagination', 'woocommerce_catalog_ordering', 20 );in general, is it possible eliminate elements from your woocommerce design using a remove_action.
In woocommerce plugin is a file called woocommerce-hooks.php inside this file is listed all elements of the various elements of the wep-shop-pages, which all can be removed this way.
Just find line add_action line you want to remove cope the line into functions.php and overwrite “add” with “remove”.
I have created a woocommerce webshop using a standard theme.
I preferred to work with Weaver ii because of its flexibility, but this was actual a hindrance to achieve my goal, so I shifted to TwentyEleven. But also this theme had some issues especially with the sidebar widgets during the process.So once again I changed theme. Twentyten makes no problem with widgets. Instead I modified the CSS to the result I wanted.
(I have now renamed the theme, so it wont disappear when updating.)Forum: Plugins
In reply to: [WooCommerce 1.6.5] Add a fixed fee to the cart totalMaybe it is possible to cancel a woocommerce function inside the template functions. like this
remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30); remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30);which removes product reviews?