Digital Raindrops
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cannot crop images smaller than thumbnail sizeIf I am reading it right your upload image is 150px why not just change the thumbnail size in Settings > Media, change the thumbnail to 149px * 149px, or any other size you want?
David
Forum: Themes and Templates
In reply to: !important tag doesn't work with WP?A Quick look at the child themes style.css
This has a double closing brace } margin-top:-32px;}
#access { background:#464646; /* Show a solid color for older browsers */ clear: both; display: block; float: left; margin: 0 auto 6px; width: 100%; margin-top:-32px;} }#access ul { font-size: 50px !important; font-color:red list-style: none; margin: 0 0 0 -0.8125em; padding-left: 0; }Look at the font-color:red it is missing the closing ;
So the stylesheet is broken!
If it helps you only need to have the changed lines in your child themes style.css!
E.G:
#access ul { font-size: 50px !important; font-color:red; }HTH
David
Forum: Themes and Templates
In reply to: Twentyeleven theme – changing colourthe current setting for the dark background option is in the /colors/dark.css file:
body { background: #1d1d1d; color: #bbb; }However it is not the body background you need to change but the #page
#page { background: #0f0f0f; }you would over-ride this in a child themes style.css, adding your color and transparency, read the note in the link on the dark option and using !important, or your changes may not happen.
HTH
David
Forum: Themes and Templates
In reply to: wp_nav_menu, one page design anchors and highlight problemForum: Themes and Templates
In reply to: wp_nav_menu, one page design anchors and highlight problemHi,
Have a look at this post, it is one I wrote for adding social media icons, but it should show what I meant about the CSS Classes for the custom menus.HTH
David
Forum: Themes and Templates
In reply to: wp_nav_menu, one page design anchors and highlight problemHi, have you tried building the menu with the URL type, I often do this to add a home link when a theme is not setup to show_home
Just add url MenuItems and put in the full path without the ‘#’.
A link to the site would help as well if you cannot get it working!
Edit:
You mean page links in the same page?
How about using “CSS Classes” on the menu items, when you are in the menu editor [Screen Options] and check the “CSS Classes”, then you can give each menu item a unique class for your script?
At the moment all menu otems have the ID #home if they have their own ID you should be able to add an active class?
HTH
David
Forum: Requests and Feedback
In reply to: Padding for code area scrollbars hiding textThanks,
I see this one is resolved!David
Forum: Fixing WordPress
In reply to: is_single OR is_category troubleIf ‘blog-excerpt.php’ is not a page template then that will not work, it would add it to all menu items because you have not specified which menuitem id, ie: 44
So that brings you back to:
add_filter( 'nav_menu_css_class', 'add_custom_class', 10, 4 ); function add_custom_class( $classes = array(), $menu_item = false ) { if ( (is_single() || is_category || is_archive()) && 44 == $menu_item->ID ) { if( !in_array( 'current-menu-item', $classes ) ) { $classes[] = 'rasmus-test'; } } return $classes; }HTH
David
Forum: Fixing WordPress
In reply to: is_single OR is_category troubleHmmmm!
I like it to be dynamick; Like based on the pagetemplate. How do I do that?
is_template_page( $filename) should do it!
This is not tested, using a page template file and should only add the class if the template is used!
add_filter( 'nav_menu_css_class', 'add_custom_class', 10, 4 ); function add_custom_class( $classes = array(), $menu_item = false ) { if( is_page_template('filename.php') && 44 == $menu_item->ID ) { if ( ! in_array( 'current-menu-item', $classes ) ) { $classes[] = 'rasmus-test'; } } return $classes; }HTH
David
Forum: Fixing WordPress
In reply to: Ordering Posts (reverse chronology -latest last)For twenty eleven, first step create a child theme or use a child theme plugin
Once you have created your child theme, copy index.php from the parent to the child theme, that is where you will find “Start the Loop” code, optional also in category.php, archive.php and search.php
I have a few posts with twenty eleven child themes, if you are starting to develop these posts have child theme downloads and might be a good starting place, as the functional code is there for you to investigate.
HTH
David
Forum: Themes and Templates
In reply to: InstantWP won't accept themeI would look at why the file is 8mb, twenty eleven is just over 800kb including the header images.
I would guess that your theme is heavy with large images, search online for a web image optimizer and crunch them images, or the theme will just run like a two legged dog!
David
Forum: Fixing WordPress
In reply to: Ordering Posts (reverse chronology -latest last)Hi Drew,
Just before the loop add:<?php query_posts($query_string . "&order=ASC"); ?>That’s it!
<?php query_posts($query_string . "&order=ASC"); ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?>HTH
David (if it works mark this topic resolved!)
Forum: Fixing WordPress
In reply to: How to make wp_dropdown_pages default to current pageHave a look at the ‘selected’ argument, add a little code to set the selected page!
This is not tested code but try something like!
<?php global $post; $currPage = ( is_page() ) ? $post->ID : 0; wp_dropdown_pages( array( 'selected' => $currPage ) ); ?>HTH
David
Forum: Fixing WordPress
In reply to: How-to: Use the One Click Child Theme PluginMany thanks have the page in draft will offer this one and see what happens!
David
Forum: Fixing WordPress
In reply to: How-to: Use the One Click Child Theme PluginHi Jan,
I cannot get started with the Codex “New Page”, I have read the help on creating pages, but just cannot get my head around it, I can see where to start?Is there a tutorial on adding pages to the codex for dummies?
I have this Codex User Page, but cannt see how to add a page from any menu?
I would start with the post for adding wp-pagenavi and wp-paginate where to start?
David π