Digital Raindrops
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Theme: Twenty Eleven] Creating a horizontal dropdown submenuThe problem you will have is width with a dropdown, what would happen if the far right item had 5 children, you will need to float the children left, which might make them look detached.
You could be better with a second menu with a menu walker that shows the children only when one is selected.
If you look at this test theme it works on categories and has a walker, keeps the dropdown, but select any menu item and it will show the siblings!
Forum: Fixing WordPress
In reply to: How do I create complex layouts?I’m trying to learn WordPress best practices.
You will not learn by trying to build a Ferrari as a first project.
Small is better, start with a starter theme like a twenty eleven child theme.
Find tutorials that change the default theme, then learn how to code and style WordPress, take time and learn, download themes that have some of the features you want and copy the code snipits and styles across.
Once you have learnt a bit then plan your own theme, draw it out on paper, decide what can be done with a widget and what you need to code.
Build your theme in small steps, as you complete each step it will feel good, try not to build the whole site in one go it is likely never to be finished.
Understanding the template hierarchy and the WordPress Codex is also important.
Who knows in six months you might be back showing us your Ferrari!
I have a few child themes that have little changes, these might get you started, as a child theme only has the changes and not all files!
This code an answer for another toipc here, is an example of muliple loops.
http://pastebin.com/rCWj69c2HTH
David
Forum: Themes and Templates
In reply to: Editing Page Nav Color in Snow Summit ThemeHi Phil,
That is because it is the active style, and you have a black.css file loading, might be a theme option?So the style you need to add to style.css is:
#access ul li.current_page_item > a, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a { color: #AE0000; }I would also add the !important to the new color!
color: #EE0000 !important;HTH
David
Forum: Themes and Templates
In reply to: Editing Page Nav Color in Snow Summit ThemeHaving a search in style.css for the word ‘hover’ and you would have found the hover colors.
This looks like the block you want, copy it and paste it at the end of style.css and make the change there, no need to edit existing styles.
.navigation a:visited:hover, .navigation a:active, .navigation a:hover { color: #df0000; text-decoration:underline; }HTH
David
Hi,
Remove the footer credit!#colophon { display: none; }General Tip:
The theme is based on twenty ten or twenty eleven, so try to use a child theme and make your changes there.For the child theme this would be the style.css, and you would copy the screenshot.png to the new child themes folder.
/* Theme Name: Snow Summit Child Theme URI: http://wordpress.org/extend/themes/snow-summit Description: Child theme for the Snow Summit theme Template: snow-summit Version: 0.1.0 */ @import url("../snow-summit/style.css"); #colophon { display: none; }If you do edit the theme styles then do not edit existing styles, create a section at the end of style.css and add changes, as the styles cascade these will take priority.
/* This section are my Custom style Changes Do not edit the styles above just add changes here */ #colophon { display: none; }HTH
David
Forum: Fixing WordPress
In reply to: Thumbnails not showing up in my postsHi for a commercial themes contact the Vendor, they should offer support by ticket or forum.
HTH
David
Forum: Themes and Templates
In reply to: How to Insert Shortcode into Theme?@MickyRoush,
I think the OP wants something to add the shortcode to all existing posts, as in lock all posts content!Regards
David
Forum: Themes and Templates
In reply to: [Theme: Hey Cookie] Thumbnail crop instead of stretch?Have a look at the ajax thumbnail rebuild plugin, the theme has two cropped custom image sizes in functions.php for the grids, use the plugin and select to rebuild featured images only.
add_image_size( 'mini-grid-thumb', 50, 50, true ); add_image_size( 'big-grid-thumb', 200, 200, true );WordPress will not retrospectivly create these when a theme is activated, so you need to rebuild the thumbnails.
HTH
David
Forum: Themes and Templates
In reply to: Image Size in WP 2011 Theme.When in the editor, and you insert the image you can select the size to insert!
Twenty eleven should display the image the same size as you see in the editor?
David
Forum: Fixing WordPress
In reply to: Else if and Shortcodes?? what worked share for others please ??
Mark this as resolved please.
David
Forum: Themes and Templates
In reply to: pimping up free themes? newbieAlso check that free themes from other website are licenced as GPL and do not have licence restrictions, some themes are free providing you leave the credit and the authors adsense block in the footer!
All themes from this website can be modified how ever you want, that is one of the requirements.
HTH
David
Forum: Fixing WordPress
In reply to: Else if and ShortcodesForum: Fixing WordPress
In reply to: php if … or …! = not
&& = and
|| = or: = then instead of { }
So you would write:
<?php if ( current_user_can('1') || current_user_can('2') ) : ?> <?php else: ?> <?php endif; ?>David
Forum: Fixing WordPress
In reply to: header image change for 2011 defalt theme custom headerHi,
All the code between the remarks you have added, just create a new file in the themes folder call it navigation-header.php, paste in your code in it.Then in header.php where you want to insert it add
<?php //Get our custom header code ?> <?php get_template_part('navigation','header'); ?>This will add it at runtime, nice and clean and seperate from the core code.
HTH
David
Forum: Themes and Templates
In reply to: Images in post above post titleBased on the codex plus a bit extra, three thumbnail images across, change for what you want!
This goes in functions.php
http://pastebin.com/2scCLiTyThis goes in style.css
http://pastebin.com/d4WKfVPWTo call the function in the “content.php” “loop.php” above the post class
<?php dr_Get_Post_Images(); ?>This is it after rebulding the thumbnails in twenty eleven to generate the new image size.
http://digitalraindrops.net/images/post-thumbs.pngHTH
David