Digital Raindrops
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Ten] Header ImagesHi,
Have a look at this function from Arron Jorb, just put it in the child themes functions.phpHTH
David
Forum: Fixing WordPress
In reply to: Navigation link, but with no pageForum: Fixing WordPress
In reply to: How do I replace title with logo in twenty elevenHi this is one idea, it requires no code changes, just by creating a header image with the logo and any custom text.
Easy to maintain, if you need to change the logo size or image just create a new header, also the whole section is clickable!
HTH
David
Forum: Themes and Templates
In reply to: Change CSS for Single PageThis solution is for pages and not posts!
Create a page template, open page.php and save this as table.php
Add the template code first after the <?php tag, like this
<?php /* Template Name: Tables */Pages > Pages > Edit or Quick Edit and apply this new template page to the pages with the tables.
WordPress will generate a body class:
page-template-table-phpNow you will have a class just for the templated pages!
HTH
David
Forum: Fixing WordPress
In reply to: How can I run php files on a wordpress site?There are also some project management plugins out there, I have not used any, but as with most plugins you can alter the code as they are GPL licenced, so you could start with one of them.
Have a Google and see whats out there.
I had a look at the php and MySql opensource Kimai a while back but there was not a connector at the time.
David
Forum: Themes and Templates
In reply to: CSS justify text not working on PagesIf you paste your page contents into Word (justified) there is not much difference to the first two sections.
The last section gets strung out and looks horrible, it might be worth looking at padding out the sentences with much more detail
It says when and where she was born but nothing about her life there, her siblings, childhood, nothing about the area, town, rural, just a name.
It says where she studied but not what she studied, was it fine arts, photography, graphic arts etc.
It says she takes picture but not what type, outdoor, nature, people, places, objects.Regards
David
Forum: Themes and Templates
In reply to: CSS justify text not working on PagesHi Flora,
you have short sentences with html line breaks.So the text is justified it is just the short sentences:
Flora Deborah is a photographer based in London (Wapping E1W). {break}
Born 1984 in Evian les Bains, Haute Savoie, she was raised in Milan and then moved to London in 2008 to study at the University of the Arts. {break}
Nowadays she takes pictures and jog by the river on sunny days. {break}
her portfolio: floradeborah.comTest it with a few paragraphs of Lorem Ipsum
This is how it looks with a large amount of text, you can see it is justifed.
HTH
David
Forum: Fixing WordPress
In reply to: adding widgets to a themeThe additional Widgets are not theme specific and would be added by plugin and theme authors, so you would look for a social media or twitter plugin with widget support.
Look for well supported plugins, look at last updated, feedback and downloads.
HTH
David
Forum: Fixing WordPress
In reply to: twentyeleven mobile site resize error advertisementsGreat,
I have just tested it with a twenty eleven child theme, resizing the browser, and had to adjust the styles with a media width of 805 this allows for the 40px of margin, and changes the ad with no overflow./* These two blocks hold our adverts */ .ad-banner { clear: both; display: block; text-align: center; padding: 20px 0; } .ad-320 { clear: both; display: none; text-align: center; padding: 10px 0; } @media (max-width: 805px) { .ad-320 { display: block; } .ad-banner { display: none; } }The only issue with this method is it takes up two of the three allowed adsense spots.
I will be using this on my own website, I changed from the 468 to square ads because of mobile devices, so I will add 468 into the mix and create a post on how to add it to a twenty eleven child theme.
Can you mark this topic as resolved please.
David
Forum: Fixing WordPress
In reply to: twentyeleven mobile site resize error advertisementsLets change what you have slightly, put the ads into different classes and turn them on and off with display: block; and display: none; !
<div class="ad-320">Advertisement<br><script type="text/javascript"><!-- google_ad_client = "PRIVATE"; google_ad_slot = "PRIVATE"; google_ad_width = 320; google_ad_height = 50; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div>And
<div id="ad-banner">Advertisement<br><script type="text/javascript"><!-- google_ad_client = "PRIVATE"; google_ad_slot = "PRIVATE"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div>Then in style.css
.ad-banner { clear: both; display: block; margin-left: auto; margin-right: auto; } .ad-320 { clear: both; display: none; margin-left: auto; margin-right: auto; } @media (max-width: 727px) { .ad-320 { display: block; } .ad-banner { display: none; } }That should work without any need for the script!
HTH
David
Forum: Fixing WordPress
In reply to: Unable to centre imagesHi,
Your image already has a class of ‘aligncenter’ but there is no style set for that in style.css however there is one for img.centeredimg.centered { display: block; margin-left: auto; margin-right: auto; }It is worth adding an aligncenter class style so at the end of style.css add:
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }HTH
David
Hi,
Can you do this, go to:1. Admin > Appearance > Menu
2. On main area there is a [+], click this give the menu the name “main” and press ( Save Menu )If you can do this then the screenshot above shows the rest, apart from setting the “main” to the “Theme Location” > Primary and ( Save Theme )
If you cannot do this then your theme does not support custom menu’s!
HTH
David
Forum: Fixing WordPress
In reply to: Categories Menu – Style just one CategoryGreat,
Could you mark this topic as resolved please!David
Forum: Fixing WordPress
In reply to: How can I run php files on a wordpress site?Have a look at the plugins Contact Form 7 Free Offering and Gravity Forms Paid Offering, might save the pain and can be modified from setting by the website admin!
Also you could include the php file in the theme and load in functions.php, then call a function passing in the details
HTH
David
Forum: Fixing WordPress
In reply to: Categories Menu – Style just one CategoryCreate a custom menu (Appearance > Menu > New Menu) for the sidebar widget and add “CSS Classes” (Screen Options > CSS Classes) to the menu Items, and styles in the child themes style.css.
This example add icons to the main menu, but the process might help as steps, and of use as a guide to Menu Items > “CSS Classes”
HTH
David