Digital Raindrops
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Quick question on child themeOR am I supposed to just add whatever I change into my .css file and leave the other file alone?
That’s the one, add only the changes you want to the child themes style.css after the @imports line!
HTH
David
Forum: Themes and Templates
In reply to: customizing 2011 theme like themify theme, is it possible??Hi WPyogi,
Should have it ready for release tomorrow (Thursday), it’s looking ok, default content plus eight different list layouts, selectable for home, archive, search and on each category, with glyphicons on the column views!The letterbox image on the fashion category is my favorite π
I will do a video tutorial and link to it in the admin area before release as well!
Regards
David
Forum: Themes and Templates
In reply to: Custom CSS not workingIt would depend on the theme where the custom css is loaded, right mouse and view page source, should show where it is loading!
Try the !important keyword:
.container { background-color: #bcae96 !important; }or
.container { background: #bcae96 !important; }HTH
David
Forum: Themes and Templates
In reply to: How to actally show category descriptionHi Rynrc,
Glad you have it sorted, mark this as resolved please.I am wanting the category title to be h1 and the text to be smaller, i have tried linking the new php line to a new class in my ccs file my cannot get it to work
Have a look at how the current titles are rendered, and get_cat_name($cat), to style the title change the class name and copy and rename an existing style block to your class name.
<h1 class="cat-title"> <!-- category-title --> <?php global $cat; echo get_cat_name( $cat ); ?> </h1>Style:
.entry h1.cat-title { color: #757575; font-size: 20px; margin-bottom: 10px; }Note:
As it is a category the WordPress template heirarcy will find the first of category-{$slug}.php, category.php, archive.php and index.php so saving index.php as category.php and making the changes will mean you will not need the is_category() condition and maintain the index.php.I recently enchanced the categories to use a custom posts for the description.
HTH
David
Forum: Themes and Templates
In reply to: Inserting Facebook button in Nav MenuJust checked in Firebug and the class is
facebookand it is looking for and failing to load the image url."images/facebook.png"With testing the url it will load!
The image path is relative to the stylesheet, so that brings us to look at the stylesheet, with FireBug, and all that is in the child themes style.css after the comments is:
@import "../twentyeleven/style.css"; .entry-meta { display: none; }The changes are currently being loaded in the header by a plugin, where are you adding them, in the plugins custom.css text area?
<!-- fonts delivered by WordPress Google Fonts, a plugin by Adrian3.com -->All your style changes should be in the child themes style.css and not injected into the
<head></head>by a plugin, if you just move the custom styles to the child themes style.css, then the problem should be solved!HTH
David
Forum: Themes and Templates
In reply to: How to create category gridsA twenty eleven child theme we hope?
I have just completed a series of YouTube videos on using the post class for setting out category posts, the child theme in the video is downloadable, if you are on Windows the InstantWP environment can also be downloaded, this is already loaded with the theme.
The columns example two over three will be a good starting place for you.
HTH
David
Forum: Themes and Templates
In reply to: customizing 2011 theme like themify theme, is it possible??I am creating a free (GPL2) twenty eleven photography child theme based on this topic, check back wednesday if you have not forked out $39
I create a free child theme if I think there is enough interest in a topic, and a simple, wide, clean photo blog, photography theme, would be a good addition.
HTH
David
Forum: Themes and Templates
In reply to: Change post result style per pageHi,
WordPress template hierarchy will look for a search.php first then fall through to index.phpTo achive what you want in a theme we would create a file called search.php with the layout we wanted!
As it is not a normal theme is there a way just to set the search page results to default to the detailed view?
HTH
David
Forum: Themes and Templates
In reply to: centering titles on siteHi,
I read it wrong you mean the page titles?.entry-title { text-align: center; }You should make any changes using a child theme, you risk loosing changes on theme version update if you edit the default themes.
HTH
David
Forum: Themes and Templates
In reply to: centering titles on siteBy tabs I assume you mean the menu items?
This should center the menu items and text
#access { text-align:center; } #access ul { display:inline-block; *display: inline; /* For IE7 */ *zoom:1; /* For IE7 */ vertical-align:top; } #access ul ul { text-align: left; } #access div { margin: 0; }HTH
David
Forum: Themes and Templates
In reply to: Inserting Facebook button in Nav MenuThe image is failing to load, it is case sensitive, try and keep the image names and folders all lowercase, so the folder /images/ and the image facebook.png
Then this should work:
background: url('images/facebook.png');The IE7 part was just that the
<a>tag would not render right in IE7.
You had already coved this off with this line:text-indent: -9999px;So ignore the IE part.
HTH
David
Forum: Themes and Templates
In reply to: How to actally show category descriptionDoes it have a category.php?
<?php global $cat; ?> <?php echo category_description( $cat ); ?>If no category.php or archive.php in index.php
<?php if( is_category() ) : ?> <?php global $cat; ?> <?php echo category_description( $cat ); ?> <?php endif; ?>HTH
David
Forum: Themes and Templates
In reply to: Inserting Facebook button in Nav MenuAdd the images in the child themes folder, create a new sub folder images, This post might help!
background: url('images/facebook.png'); background-repeat: no-repeat;for IE7 send the tag off the page!
#access .facebook a{ color: transparent !important; padding: 0; left: -9999; }David
Forum: Themes and Templates
In reply to: customizing 2011 theme like themify theme, is it possible??Check out the free WordPress.org themes, check the photoblogging check box and have a look.
Also a search for Minimalist returns six pages of free themes.
These are all free to download and the licences are GPL, so you can alter whatever you want.
HTH
David
Forum: Themes and Templates
In reply to: Childtheme of twenty eleven – Header image sliderHi,
Firstly this will point to the twenty eleven themes folders and not the child themes folders!get_template_directory_uri();You should add the images in the child themes folder and use:
$path = get_stylesheet_directory_uri() .'/images/banner/';No Code Solution (preffered option)
as my client wants to change the image every month?
It looks like this is not a slider as you client want to change the image monthly, as RichMacDonald has said you could just upload headers and these will change on each page load but they will not ‘slide’, or your client can upload and set the active header themself from admin.
Using Header Images in a Slider Script:
To return the headers to use in a slider, there is a function that will return the header images in an array so you can use them in your slider!// Get an array of uploaded headers $headers = get_uploaded_header_images(); if( $headers ) { foreach( $headers as $header ) { echo '<img src="' .$header['url'] .'" />\n"'; } }Slider Plugin
There are a number of slider plugins out there that could also be used.HTH
David