lemu
Forum Replies Created
-
Forum: Themes and Templates
In reply to: theme fatal errordid you create a child theme and copy the functions.php?
..the functions.php of a child theme does not override its counterpart from the parent.
https://codex.www.ads-software.com/Child_Themes#Using_functions.php
Or maybe you just redeclared a function that has already been declared in the main theme. Try changing the name or removing the function.
Forum: Themes and Templates
In reply to: Problem with menutry adding this to your child theme:
.main-navigation .current-menu-item > a { font-weight: normal; }
Forum: Plugins
In reply to: [WooCommerce] how to add cart icon in headYou could do something like this in your header.php file:
<?php global $woocommerce; // get cart quantity $qty = $woocommerce->cart->get_cart_contents_count(); // get cart total $total = $woocommerce->cart->get_cart_total(); // get cart url $cart_url = $woocommerce->cart->get_cart_url(); // if multiple products in cart if($qty>1) echo '<a href="'.$cart_url.'">'.$qty.' products | '.$total.'</a>'; // if single product in cart if($qty==1) echo '<a href="'.$cart_url.'">1 product | '.$total.'</a>'; ?>
Adding the cart icon should be relatively easy then. Other cart methods can be found here: https://docs.woothemes.com/wc-apidocs/class-WC_Cart.html
Forum: Themes and Templates
In reply to: Removing Grey Border in Headertry adding this to your stylesheet
#header nav#access{ box-shadow:none; }
Forum: Themes and Templates
In reply to: Change the content width on only one pageadd this to your stylesheet
.page-id-6 .site-content{ width:100%; }
This CSS will only apply to the page with ID: 6. Be aware that if the ID changes that the CSS won’t work anymore.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce shop page line spacing issueIt’s difficult to say if we don’t have access to your site.
It could be that you have set a background color on the “showing all results” element and it may be overlapping with the title. So removing the background or adding a margin could resolve the issue.
But to be sure you should post a link to the page.
Forum: Plugins
In reply to: [WooCommerce] Customizing Woocommerce buttonsIn your dashboard go to WooCommerce > Settings and there you should see some color pickers to change the default woocommerce styles.
you have a border-top: 1px solid #dddddd; on .table th, .table td coming from bootstrap (Line 577).
Either remove that or add this to your own stylesheet
.entry-content .table th, .entry-content .table td{ border:none; }
As for the thick gray line, that is an empty
blockquote element. You might want to check that in your tinymce (edit post/page). It might have got added there.Forum: Themes and Templates
In reply to: Add background shadow :after classThe problem is you’re trying to add the after element to an <img> tag. This doesn’t work. Try wrapping a div around your images and adding the after element to those instead.
Also don’t forget to set the parents position to relative if you’re using absolute on your afters.
Forum: Themes and Templates
In reply to: Add background shadow :after classI suggest putting the after element on the .wooslider class:
.wooslider { z-index: 1; } .wooslider:after { display: block; content: ''; position: absolute; width: 100%; height: 10px; bottom: -10px; left: 0; background-color: tomato; background-image: url(https://URL_TO_SHADOW); z-index: -1; }
obviously you’ll have to play with the dimensions and add your own shadow (remove the background-color). But this should work.
Forum: Plugins
In reply to: Posts in Page – full post rather than shortened?In your Dashboard go to Settings -> Reading and change:
“For each article in a feed, show” to “Full text”You can use the function query_posts() to get posts by tag.
<?php // The Query query_posts( 'tag=europe&orderby=date&order=ASC' ); // The Loop while ( have_posts() ) : the_post(); echo '<h2>'; the_title(); echo '</h2>'; endwhile; // Reset Query wp_reset_query(); ?>
https://codex.www.ads-software.com/Template_Tags/query_posts
Forum: Themes and Templates
In reply to: Comments are showing up as middle alignedbecause you have wrapped your whole content in a <center> element.
try adding text-align: left; to the comment_list id
So I’m guessing, you’re referring to those litte images at the top left of each post?
In this case you can try adding a margin-top of around 35px to the .post-content class.
Can you post a link?