Digital Raindrops
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Simplest way to display a widget area, need help…declaring somewhere in that code “Hey! Put the widget area here!”
This call is a WordPress PHP function that does just that, it will return the contents of the widget area,
dynamic_sidebar( 'sidebar-1' );Also again ‘sidebar-1’ has already been created in the twenty eleven parent theme, so your sidebar name should be changed!
Twenty Eleven – functions.php has:
register_sidebar( array( 'name' => __( 'Main Sidebar', 'twentyeleven' ), 'id' => 'sidebar-1', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => "</aside>", 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );HTH
David
Forum: Themes and Templates
In reply to: Different menu background color for each tabHi,
I created a twenty eleven child theme, you can grab it here:Using a custom menu and the “CSS Classes”, nav-1 to nav-6, add six pages and the classes, save the menu and allocate to the primary “Template Location”
The page that relates to menu item one, edit and select the “Color One” template, repeat for the other pages “Color Two” to “Color Six”
This is for a simple six page website, and it will show a simple way to get close to what you want!
It uses Menu Item “CSS Classes”, “Template Pages”, and “Post Classes”
HTH
David
Forum: Themes and Templates
In reply to: Different menu background color for each tabNot that easy as the website in the link, when you click the red link the loaded page title is also red, so there are two elements at work here, menu class and post class!
To give a good answer then a bit more detail, are you only using pages, or categories?
If it is a few you can if supported use a custom menu and menu “CSS Classes”, then if it is pages create a page template for each color and use the page_class or post_class to style the page!
A mix of these may give you some ideas, for the menu classes have a read of this post replacing the image styles with background styles, and for the post_class have a look at the page template in this post.
HTH
David
Forum: Themes and Templates
In reply to: Simplest way to display a widget area, need help…Hi I answered this a couple of days ago someone wanted a horizontal widget area, there is an example with a twenty eleven child theme step by step workflow, this may help!
Uses condition
is_active_sidebar( 'horizontal-1' )instead of the php !, and will output the div within the condition, so if the ‘horizontal-1’ widget area is empty it will not display!NOTE ON SIDEBAR-1:
The parent twenty eleven already adds the sidebarssidebar-1tosidebar-5, so you should avoid using sidebar-1 as that id already exists!HTH
David
Forum: Themes and Templates
In reply to: Edit 'wp_postmeta' from dashboard?I have opted to resize those few remaining thumbs myself
Make them bigger, change the name and remove the old featured image and set the larger ones as the featured image by upload!
HTH
David
Forum: Themes and Templates
In reply to: Change text color on hoverI know there are ways to do this in the stylesheet though I’m just learning
Adding to the stylesheet is much easier than inline styles.
You could give the div a ‘class’ and style the class in the stylesheet instead of inline, so the div would start like
<div class="my-class">Then in style.css you might have something like (you might need a nested class if it was inside a content div)
.content .my-class, .my-class { background: url(images/myimage.png) no-repeat; } .content .my-class a:focus, .content .my-class a:active, .content .my-class a:hover, .my-class a:focus, .my-class a:active, .my-class a:hover { color: #00ff00; }Could also add:
.my-class p a:focus, .my-class p a:active, .my-class p a:hover { color: #00ff00; }And style the ‘p’ element in the stylesheet
.content .my-class p, .my-class p { margin: 5px 10px; color: #ff0000; }Another option is to use the post_class(), I did post on this a week or so ago, the post class might be the “way to go”, you may want to check it out!
HTHDavid
Forum: Themes and Templates
In reply to: Menu Mod TwentyelevenYou could recreate the menu in your link, changing the colors in style.css and adding the @ as an image or text, I do not think the link is right in the UK?
I am not sure what you mean by this?
Superimposing a white text so that it gets read as a cutout of the black background.
The link in the UK is to a red and cream theme, not a Google image, add a better link to a website or image and not a Google search!
Regards
David
Forum: Themes and Templates
In reply to: Menu Mod TwentyelevenHi,
The twenty eleven theme only uses colors and not images, so you can change these as Esmi said in the Child Themes style.cssYou can use FireFox and FireBug to find the style colors you want to change.
As you have a test website, I created a child theme a while back that you can use to play with the colors, the menus are gradiants and it will deal with them, it generates the style blocks for you to copy, you can read about it and download it here
See the menu change on YouTube about 1:00s in!
HTH
David
That is really a different topic, much more involved, you should either create a new topic or Google a solution.
In which file I could find this code and modify it to “read more” instead of “continue reading..” ?
Never alter the twenty eleven theme, when WordPress is updated the theme could be deleted and re-installed any changes will be history!
First you would use a child theme, this would have a style.css, a functions.php and a screenshot.
There are several child theme downloads, one of them is mine, use any of them, install and activate, if you do not want to create your own.
Then you are ready to find the solution and edit the files in the child theme, and upload them with FTP or your ISP’s File Manager.
This one looks fairly well code commented, you could add the code to the child themes functions.php, and the post comment are positive.
HTH
David
Use the more tag from the editor or write a post excerpt, I wrote a post to explain the excerpts and more options, it may help!
David
Forum: Themes and Templates
In reply to: Editing A ThemeHi Kellie,
GoDaddy is the self WordPress.org hosting platform, WordPress.com is a managed WordPress where you are limited to what you can and cannot use, so this is the right place for your WordPress question.As to the theme you need to check how it is licenced for use, and any restriction, there is no licence file in the download, so you may have to contact the author.
The themes from here WordPress.org are all GPL 2.00 which means you can do what you like with them, so as said have a look at the themes here.
HTH
David
Forum: Themes and Templates
In reply to: Editing A ThemeHi Kellie,
That theme is on WordPress.com, these are not always avaliable for the self hosted WordPress.orgContact the author first to see if you can get a copy for the self hosted platform, if your client is not using WordPess.com where you are limited to what you can change.
Link to free Ocean Mist Download
HTH
David
Forum: Themes and Templates
In reply to: CSS Classes option for custom menu itemHi,
It could be your theme,does your theme use a Custom Walker or an argument in the call to the nav menu that could be changing the standard calls?Twenty Eleven Child Theme:
Yes it will have the class on the menu item, if yours does not then make sure you Create a Custom Menu, SAVE MENU, assign the Template Location and SAVE MENU, saving at each stage is important!Screenshot: Here
HTH
David
Forum: Themes and Templates
In reply to: [Theme: Twenty Eleven]Yes all themes in the WordPress directory must be licensed as GPL, which means you can alter them, read the licence.txt in the themes folder.
Several options are open, rename the twenty eleven folder and change the style.css to your theme’s name.
There are stripped down starter themes in the directory that you can use as a starter and build on, I have not used them.
You can do so much with a twenty eleven child theme as it will inherit all the twenty eleven files, and you can re-style it in the child themes folder.
HTH
David
Forum: Fixing WordPress
In reply to: How to integrate jquery code into my blogI have written a post with this code, the twenty eleven child theme I tested with is a download in the post.
It might help other readers of this topic, to add the code to their own themes.
David