Digital Raindrops
Forum Replies Created
-
Forum: Themes and Templates
In reply to: CSS Classes option for custom menu itemThe CSS Classes enable you to style that menu item in the style.css
I wrote a post on adding social media icons using CSS Classes, it might help, there is a download so you can see the styles for the icons.
HTH
David
Forum: Themes and Templates
In reply to: Editing Boldy theme for background issueFirst see if your them supports custom backgrounds, Admin > Appearance > Background
If it does you can change it there!
If not look in style.css for:
body { }Then at the end of the file.css set the color like:
body, html { background: none repeat scroll 0 0 #0000FF; } #wrapper { background: none repeat scroll 0 0 #FFFFFF; }HTH
David
Forum: Themes and Templates
In reply to: HTML entities in page title (not )We had this one the other day, and the solution from michael.mariart was that some themes use fonts like Cufon, Google Fonts, etc:, and some of these fonts do not support the extended character set!
Check the font your theme is using for the titles.
HTH
David
Forum: Fixing WordPress
In reply to: How to integrate jquery code into my blogIt is a nice little bit of code.
Can you set the topic status as resolved, there is a dropdown box on the right!
This Topic is:
[ Not Resolved ]
( Change )David
Forum: Fixing WordPress
In reply to: How to integrate jquery code into my blogThis is really Cool!
Create a new folder in the themes folder: /js/
Create a file in the new folder: jquery.navigate.jsThis works and was tested in a Twenty Eleven Child Theme, navigation classes .nav-previous and .nav-next
Add this to jquery.navigate.js, note: the new start and ending lines!
(function($){ $(document).ready(function () { $(document).keydown(function(e) { var url = false; if (e.which == 37) { // Left arrow key code url = $('.nav-previous a').attr('href'); } else if (e.which == 39) { // Right arrow key code url = $('.nav-next a').attr('href'); } if (url) { window.location = url; } }); }); })(jQuery);In functions.php add!
/* Add the Javascript */ $path = get_stylesheet_directory_uri() .'/js/'; wp_enqueue_script('post-navigation', $path.'jquery.navigate.js', array('jquery'));HTH
If this is what you want, remember to mark the topic as Resolved!
David
Forum: Themes and Templates
In reply to: how can i add a text hoover to images? (Example Inside)Check out Portfolio Press from the themes directory.
This has jst the effect you are after, themes on extend are GPL so you can use the code, download it, activate it and investigate it!
HTH
David
Forum: Themes and Templates
In reply to: Changing header code in functions.phpStrange, I tested it again!
Default Headers Removed and New Header Size!
Screenshot Admin
Screenshot WebsiteHTH
David
Forum: Fixing WordPress
In reply to: HELP!Changing the Grey #999 to Blue #112288?
Is this a premium theme with encryption code?
If Not then undo the change from file manager, or Admin > Appearance > Editor
If it is encrypted or the changes have not reverted the theme back then:
If you have or can get a copy of the theme, use ftp or your ISP > Control Panel > File Manager, and over-write the style.css file.Going forward read the rules on postings here, about HELP! in the topic title.
Do not edit the style.css just add your changes to the end of the file, as it is cascading it will read your changes last.
HTH
David
Forum: Themes and Templates
In reply to: Changing header code in functions.phpHi,
Before you do that test the Brunelleschi Child Theme download from this category link, it is the files I used to test the concept.HTH
David
Forum: Themes and Templates
In reply to: Create Widget Section in a Metabox of a Page/PostHi,
Yes it will be in the functions.php/* This function will return a list of information posts for our widget */ function dr_info_get_posts() { $postlist = array(); array_push( $postlist ,array( "value" => 0,"label" => '') ); $args = array('post_type' => 'information','numberposts' => -1,'post_status' => 'publish' ); $myposts = get_posts( $args ); foreach( $myposts as $post ) { array_push( $postlist ,array( "value" => $post->ID,"label" => $post->post_title) ); } return $postlist; }HTH
David
Forum: Themes and Templates
In reply to: Create Widget Section in a Metabox of a Page/PostFor example, if the page was about a particular topic, I would like to add an image, some additional text and maybe a form on the right hand side unique to that particular page.
I think you should not get hung up on “Drag and Drop”, a simple lookup is easy to manage.
I would just use a custom post type for this, then you have the full editor to add the image, text, forms, shortcode etc:
You could use PageMeta to give a dropdown to a list of custom posts.
I was looking at this recently for “Information Posts”, part of this child theme added an information widget where you could select the post to display.There is a download in this posts with the code, it is not completed and uses WooFlexiSlider and not Nivo shown in the images, it is just a sandbox where I was floating Ideas, the code may help!
David
Forum: Themes and Templates
In reply to: Create Widget Section in a Metabox of a Page/PostYou can add a metabox to a page / post, but I dont think there is a way to have a widget per page if that is what you want.
If you could give an example of what you want to achieve.
It could be metaboxes for simple data, or you might do it by building in a custom post type, and giving a shortcode or metabox dropdown on the post or page to include the contents of the custom post.If it is a sidebar again a shortcode or a dropdown from the post meta boxes.
I use MetaBoxes in this post to select the content, layout and sorting in a page template (page of posts)
HTH
David
Ok,
There are many themes with different sidebar and widget layouts out there, this gives WordPress theme designers the ability to create and control the way they want the theme to show.It might be that the theme you like does not have the widget areas you want, so the options are to change the theme, or get “under the hood!”
An extra Widget Area can be done really easy, a little code in functions.php, a new template part file and a modification to the template file or header.php
If you have a spare widget area that you know you will not be using, wrap it in a template part and call it in the template.
What theme do you have installed?
Based on a Twenty Eleven Child Theme
Adding a new Widget Area, wrapping it in a Template Part, and calling the filefunctions.php
add_action( 'after_setup_theme', 'child_theme_setup' ); if ( !function_exists( 'child_theme_setup' ) ): function child_theme_setup() { register_sidebar( array( 'name' => __( 'Horizontal Widget Area One', 'twentyeleven' ), 'id' => 'horizontal-1', 'description' => __( 'An optional horizontal widget area', 'twentyeleven' ), ) ); } endif;The Template Part:
A new file horizontal-1.php<?php if ( is_active_sidebar( 'horizontal-1' ) ) : ?> <div class="widget-area horizontal-1" role="complementary"> <?php dynamic_sidebar( 'horizontal-1' ); ?> </div><!-- .widget-area --> <?php endif; ?>Then copy the page or header.php from the parent to the child theme
and where you want the the new widget area to show.<?php get_template_part('horizontal','1'); ?>Adding the class horizontal-1 means you can style it in style.css
.horizontal-1 { list-style: none; text-align: center; }HTH
David
Forum: Themes and Templates
In reply to: Not Seeing Page Template in the dropdownSmall steps = big distance!
Key is the opening lines of the template page, just after the opening PHP tag.
To test open from the parent theme, page.php, save this as page-test.php and make the fist lines look like this, dont change anything else yet, small steps, test the new page.
<?php /* Template Name: My Template */That is all there is, the new page should now appear in the template dropdown, carry on in small steps making your other changes.
HTH
David
Forum: Themes and Templates
In reply to: how can i add a text hoover to images? (Example Inside)Why not just switch the background and color on hover?
.fp-thumbnail a { background: transparent; color: transparent; } .fp-thumbnail a:hover { background: #3B5998; color: #fff; }HTH
David