richarduk
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Childishly Simple] Page of postsI think you’ve bitten off more than you can chew there Tony. The code listed needs a bit of adaptation to make it work/ fit in with the theme. I can have a look at it with a view to including that as a template in an updated version but not tonight. Meantime what about creating a specific category instead of a Page of posts? The only drawback would be if you didn’t want that category showing e.g. in a list of all categories, or if you wanted it shown in a list of all Pages. Apart from that you could link to it from a menu.
Suspect you might have tried to run the PHP code through the WC3 HTML checker.
Forum: Themes and Templates
In reply to: [Childishly Simple] Changing fonts and font sizesYep. If this is the CSS you’ve used then you’ve added an extra bracket between each rule. This place is always a good place to go when you’re totally stuck:
Forum: Themes and Templates
In reply to: [Childishly Simple] Changing fonts and font sizesFinding the relevant part of CSS file – no need. Just add your styles into the child theme style css. They’ll overwrite anything that comes before. If they don’t overwrite it then you just need to be more specific – for example if you put
div.post {color:red;}in and it doesn’t change a font color then you can godiv.post p {color:red;}orbody.post div.post p{color:red;}(just an example)If you’re using ‘Web Developer’ (I do as well) then CSS / Edit CSS’ allows you to real-time test what works and what doesn’t. Just place it in the bottom of the ’embedded styles’ stylesheet to get an idea of what works.
‘Hack the web’ and ‘Aardvaark’ make life a lot simpler. FF also comes with an ‘Inspect the element’ tool (right click anywhere on the page).
Click the square with an arrow in it to get an idea of element names and classes. Much the same as ‘Aardvark’ and ‘Hack the web’ but lots better once you get used to it.Generally speaking you’re looking at something like this:
Pages onlydiv.page {font-family:Arial,Verdana,Serif;font-size:14px;color:blue;}Posts only (multiple and single)
div.post {font-family:Arial,Verdana,Serif;font-size:14px;color:blue;}Single posts only
div.single-post {font-family:Arial,Verdana,Serif;font-size:14px;color:blue;}Posts and pages
div.page, div.post {font-family:Arial,Verdana,Serif;font-size:14px;color:blue;}Sidebars – change left to right for right sidebar
div.left-sidebar-item a:link, div.left-sidebar-item a.url:link{ color:#653301;font-family:arial;font-size:12px; } div.left-sidebar-item a:visited, div.left-sidebar-item a.url:visited{ color:#653301;font-family:arial;font-size:12px; } div.left-sidebar-item a:hover, div.left-sidebar-item a.url:hover{ color:#653301;font-family:arial;font-size:12px; }H1 on pages
div.page h1{font-family:Arial,Verdana,Serif;font-size:14px;color:yellow;}H1, h2, h3 on posts
div.post h1, div.post h2,div.post h3{font-family:Arial,Verdana,Serif;font-size:14px;color:yellow;}Forum: Themes and Templates
In reply to: [Childishly Simple] Changing fonts and font sizesHmm.
If you’re more specific I can help e.g. all pages, I want the title bigger or all posts I want the content bigger or just the category tags or whatever.As a general rule of thumb, keeping it simple:
I use Firefox and ‘hack the web’ addon. It might be worth installing FF just for that – but other browsers might have similar extensions. When mousing over an element e.g. a header it’ll tell you what class that element has e.g. h1 class: page
In the top options box you could then put something like this:
<style type="text/css"> h1.page {font-size:1.5em} </style>Ems change font sizes proportionately so that changing one element’s font size higher up the CSS chain of command changes all the font sizes below it and are used in the theme but you could use pixels which change just the one thing you want
<style type="text/css"> h1.page {font-size:20px} </style>If you want to change lots of font-sizes do it like this:
<style type="text/css"> h1.page {font-size:20px} h3.post {font-size:30px;} </style>Not all elements have obvious classes e.g. paragraph elements. So you then mouse over the container that they’re in and it might say div, class:page (among other things)
So then you’d define that paragraph element like this:
<style type="text/css"> div.page p{font-size:30px;} </style>meaning the paragraph element p which is in the div with class page (the dot means class)
Or you can View Source and try and work it all out but it’s more complicated that way.
I recommend ‘HTML, XHTML and CSS’ by Elizabeth Castro – it’s excellent. It’s how I learnt. Might be worth it if you’re going to be investing time over the next however many months or years.
Forum: Themes and Templates
In reply to: [Childishly Simple] can I remove horizontal menu at the top?@tonywilliams see my updated reply above ‘cos posts crossed.
Makes no diff if using child theme, put in top options box either:
‘Add CSS, javascript or shortcode in the head element of all pages of your website’
or if it’s only for the home page
‘Add CSS, javascript or shortcode in the head element of the home page only’
it’ll look like this:
<style type="text/css"> div.header-container {display:none;} </style>Forum: Themes and Templates
In reply to: [Childishly Simple] can I remove horizontal menu at the top?Gotcha. Try this:
div.header-container {display:none;}and this if you want to adjust the height:
div.header-container {min-height:0;height:10px;}and if you want it on a specific page only then view source and look for the body element. Find a class in that body element that applies only to that page and put it in front. So for a body with following classes:
<body class="home page page-id-72 page-template-default custom-background three_col_cont_middle gecko"> body.page-id-72 div.header-container {display:none;} body.page-id-72 div.header-container {min-height:0;height:10px;}or I could have used the class home
Forum: Themes and Templates
In reply to: [Childishly Simple] can I remove horizontal menu at the top?What do you mean by the centre text element? If you post a link I might be able to help.
Forum: Themes and Templates
In reply to: [Childishly Simple] Can't change widget titlesIf you’re using the pre-installed settings that come with the theme (you check one or more boxes for recent comments, tags etc) then these are fixed. They’re meant for people who just want something simple straight out of the box. If you want to start changing widgets around then you need to go to Appearance / Widgets and drag widgets into the areas on the right e.g. sidebars, footer etc. Once you’ve dragged a widget there you can add your own titles etc.
WordPress comes with a selection of widgets in Appearance / Widgets but if you want other ones either click ‘Plugins’ in the left of the Admin pages, click ‘Add New’ at the top and search for something like ‘Recent comments widget’ OR search the internet for a widget, download to your computer and upload by going to Plugins / Add New / Upload (small writing near the top of the page)
Forum: Themes and Templates
In reply to: [Childishly Simple] Broken LinkWhereabouts is this link appearing? It’s quite possible that I’ve made some dumb error so I think that’s the starting point.
Forum: Themes and Templates
In reply to: [Childishly Simple] Broken LinkOptions page > Miscellaneous > Show RSS feed links.
Not sure why the link would be broken – I can only guess that you have zero comments ? I don’t know if that would do it.
Forum: Themes and Templates
In reply to: [Childishly Simple] translate the themeThere’s stuff that I have to do to make it translatable which currently looks like a lot of extra work. If the theme becomes wildly popular then I’ll tackle it but until then …. Meantime the theme is going to undergo quite a few changes, so … It’s on my to-do list, but right at the bottom unless I’m forced to do it.
Top options box, ‘Add CSS …’
<style type="text/css"> div.content { background-color:transparent; } </style>BUT – the content is contained within div.inner-wrapper, which in turn is contained within div.wrapper, in other words there will be divs behind div.content which will show THEIR colors.
Forum: Themes and Templates
In reply to: [Childishly Simple] Problems with update? Help here.Whoops, my mistake. You need to get the following either into the bottom of style.css
body.page div.content-page-without-sidebars, body.page div.content-page-without-sidebars-or-a-title, body.page div.content-page-without-sidebars-or-a-space-at-the-top { border:none; margin:0; padding:0; width:100%; }or put this into the top box on the options page (Add CSS, javascript or shortcode in the head element of all pages of your website_
<style type="text/css"> body.page div.content-page-without-sidebars, body.page div.content-page-without-sidebars-or-a-title, body.page div.content-page-without-sidebars-or-a-space-at-the-top { border:none; margin:0; padding:0; width:100%; } </style>The centering has been caused by whoever wrote that page because the paragraph tags look like this:
<p style="text-align: center;">Richard
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Product Images Blurry and not Fitting@renoiriii You’re missing the point completely, no offence. This is nothing to do with regenerating thumbnails and all the rest of it, this is a fundamental CSS issue with WooCommerce where they’ve been far too specific in their external stylesheet, setting images to 48% of the width of the page, meaning that the inline styles can’t be over-ridden by the external styles.
@chrisjackson Sorry can’t help, the CSS I used applied to one particular method of including WooCommerce in a theme, it might be that your theme includes it in a different way and has different CSS?
@jamie771 I noticed that images weren’t exactly the size specified but after having images that were 48% of the width of the page I was grateful for anything that came close to working. These are issues that WooCommerce should be fixing and I posted here precisely because jameskoster (Plugin author) posted here and MIGHT be receiving these emails. I couldn’t be bothered registering with WooCommerce and going on a support forum, that was all.
Forum: Themes and Templates
In reply to: [Childishly Simple] Remove Date and Author from postsOptions Page -> Add CSS, javascript or shortcode in the head (ignore this if you’re not sure) -> Add CSS, javascript or shortcode in the head element of all pages of your website
<style type=”text/css”>
p.post-info-top,
p.post-date,
p.post-info-bottom-tags,
p.post-info-bottom-categories{
display:none;
}
</style>Richard