Forum Replies Created
-
AuthorPosts
-
westerdaledMember
Hi
I want to enable Breadcrumbs on Metro Pro in conjunction with the Yoast Plugin. Do I insert the snippet above and also the snippet shown the in the Yoast -BreadCrumb settings at the bottom of the functions.php ( or my custom site level plugin)
Daniel
westerdaledMemberSorry I seem to missed the link i mentionedHow to Style the Date in the Genesis Post Info
westerdaledMemberHi
I have a similar issue in that I would like to style the date and time would need the HTML5 snippet mentioned . However, I think the classes have changed a bit in the newer Themes.
The format want is quite close to this : Only this doesn't quite work due to incorrect class names.
.post-info becomes entry-meta
Also, I have already styles entry-meta class for something else so I need create and entry-mata-something class as the top level class for the date and time format.
I think a few hints would be helpful as I am happy to experiment with the CSS.
March 23, 2015 at 11:44 am in reply to: Can I override any plugin's css using my child theme #145346westerdaledMemberHi any update on this please. Is it easy to inject styles or scripts in this location?
westerdaledMemberBrad
Ok , with your guidance and a bit of Googling I quickly built a plugin in NotePad++ to do as you suggested
function wsl_css_fixes_added_to_head() { //wp_enqueue_script('jquery'); /* the code class-metabox.php: wp_enqueue_style( 'metabox-tabs', plugins_url( 'css/metabox-tabs' . WPSEO_CSSJS_SUFFIX . '.css', WPSEO_FILE ), array(), WPSEO_VERSION ); */ /* remove the above class library that is supplied by Yoast */ wp_dequeue_style( 'metabox-tabs' ); $fixstyle = WSLCSSFIXES_PLUGIN_URL . '/css/metabox-tabs-fixed.css'; $handle = 'metabox-tabs-fixed' ; wp_register_style( $handle, $fixstyle,'','', 'screen' ); wp_enqueue_style( $handle); } /* attach my custom hook function to this event */ add_action( 'wp_enqueue_scripts', 'wsl_css_fixes_added_to_head' ); /* Stop Adding Functions Below this Line */ ?>
I Ftped my plugin over to my blog site and activate my plugin. I can see my style sheet is there on my home page ( in Firebug lite) - I can even inspect my css file to see I have removed the display property in two of the classes. The thing is the Yoast options panel on the page edit screen is where I should be triggering my dequeue metabox tabs and enqueuing my fix css so I need to hook into that event....
westerdaledMemberBrad
Thanks for your reply .
1) I have tried
display: block !important;
to both of the above classes and this had no effect. Incidentally, to test moved from FireFox->Firebug to Chrome-Web Developer tools plugin and this is taking a bit of getting used to to see what .css is loads. I use for Chrome in all my VMs
I have looked at the functiions.php and I need to add an action to dequeue metabox-tabs.min.css and paste these classes into styles.css .. This strikes me as a maintenance headache after updates to my theme or changing the them altogether . Unless there is normal practice for WordPress devs or there isn't a a ultra simpler way of sorting this, such as adding override.css as the last Css to be added.
One thought depending on your answer is if Genesis SEO is good as people indicate it is, then why am I bothering with Yoast and wresting with this issue?
westerdaledMemberAndrea
Thanks for that url. I also tried http://mysite/comments/feed and that works for comments.
The rss to email feature of Mailchimp confused me a bit but as you say this different to the news subscription it offers.
Thanks
Daniel
November 24, 2013 at 12:46 pm in reply to: Has anybody tried using Genesis eNews Extended with MailChimp groups? #75385westerdaledMemberI have setup the extended News form against MailChimp for my blog, Is this still an issue?
October 5, 2013 at 5:32 pm in reply to: Styling links associated with each post category in the Filed Under Section #65498westerdaledMemberI have to admit I have done much on this as I was told it will be quite complicated. I know I could so this with JQuery but since it would be good keep everything within php and CSS, there must be another way.
Anyway, I stumbled on this link.
If add
< ?php post_class(); ? >
to thePost Layouts -> settings ->Custom Post Class
Then I gather....
.cattegory_name to is added my output and if I style these classes then maybe I can cascade the existing metro stylesSo for example if I has a blog on music styles I might have
.category-punk { font: black;} .category-metal {font: red;}
and if hack my styles.css I wonder if I can't change the boring post info categories:
.category-punk .entry-categories
{}The plan is to style the the category name in my post or even replace it with an img
I am not sure of the syntax or even the theory so please feel free to correct me.
westerdaledMemberHi
By the way I do have JetPack comments ( not enabled) if this can work , threaded and can be made to allow edits.
Daniel
August 22, 2013 at 2:28 am in reply to: Styling links associated with each post category in the Filed Under Section #58141westerdaledMemberSanjey
THanks for your reply... I had a look in my theme (Metro/Genesis 2.0) styles and yes, I guess I can embellish this markup - I am assuming I don't need to touch functions.php
.categories, .tags { display: block; }
I will be interested in seeing what you come up with. I think the starting point is displaying in the top or bottom of posts. However, It would be cool to also show it in the rolled up content shown the Genesis Featured Posts plugin as this will draw my readers in.
Daniel
westerdaledMemberHi brad,
Thanks for that as the post made things a lot clearer .. I have done a bit of futher research and I think I need to have descendant classes to style the day, month and year... so starting with this
.post-info { border-bottom: 1px solid #ddd; font-size: 14px; margin: 0 0 20px; padding: 0 0 5px; } .post-info .day, .post-info .month { font-size: 10px; } .post-info .year { font-size: 8px; }
Daniel
May 12, 2013 at 1:49 pm in reply to: Metro Theme: tagline not visible; site title too long for iphone? #40582westerdaledMemberhi
In the end I needed to add and amend this markup to get my tagline to display - could see the tagline was there in firebug but it still wasn't being displayed ... now it is
.
`
/* tagline - taken from the sample child theme */
#description {
font-size: 12px;
font-style: italic;
color: #636363 !important; /* otherwise this is overridden and doesn't get displayed note my site title uses a white colour font */
}
``
May 12, 2013 at 2:24 am in reply to: Metro Theme: tagline not visible; site title too long for iphone? #40538westerdaledMemberHi
Yesterday, I switched to the Genesis sample child theme which places the tagline under the site title. Since the theme is almost entirely styles.css I have been comparing with the syles.css in Metro. Anyway I suspect we need to retrofit these styles to Metro which I won't be to do until about later on today - It would be good is someone has a go as well and we can compare notes.
``#description {
font-size: 12px;
font-style: italic;
}.header-image #description {
display: block;
overflow: hidden;
}As for raising a support call; well your on your own there as I was directed here!
Daniel
May 9, 2013 at 9:44 am in reply to: Metro Theme: tagline not visible; site title too long for iphone? #40089westerdaledMemberKay
I too want to put a tagline below my site name on my blog site. I am also using metro. To be honest, I thought it was an issue I caused when it didn't get displayed - white colour font for the site name may be an issue if is displayed on the default white background. Did you get this to work in the end or do did you add the static tag line to your header image..
I will have a go tonight doing this but it would nice to know that it can be done..
`
#description {
display: block;
}
`January 15, 2013 at 9:41 am in reply to: Local installation of WordPress, Genesis, plugins et al. #12057westerdaledMemberHi
I think I am nearly there following these steps:
1) ftp copy of blog files from remote site
2) import SQL backup into my local db
3) run WordPress db Search and Replace ToolThat is, I can see an exact copy of my remote blog home page: posts, tweets etc when I go to my local home url
Also, I can see that when I mouse over each of my posts the correct local link is set correctly to
http://localhost/myblog.biz/my-category/title-of-postHowever, looks can be deceiving 🙁 as when I actually click on any of the posts I am redirected immediately to
http://localhost/XAMPP and so not viewing any of my prosaic text..... ouch!!!!Any thoughts anyone in the community. I will try and enable wordpress debug as MySql debug seems to want to winge about a few depreciated function calls
Daniel
January 14, 2013 at 4:01 am in reply to: Local installation of WordPress, Genesis, plugins et al. #11777westerdaledMemberThanks for your comment. I have heard about backupbuddy but in my case I would like to stick with my existing WordPress Backup http://hmn.md/backupwordpress/ since I have now configured it to do automated backups of files and db.
I have done a bit of searching and there is a process out there I have come accross
MIGRATING A WORDPRESS/WPMU/BUDDYPRESS WEBSITE
This makes use of a php script :
WordPress db Search and Replace ToolLooks straight forward . The only reason I have tried it out is that as I am copying http://mydomain.biz to http://localhost/mydomain.local I want to try and run the script on my local (XAMPP) install not on the public facing site - the instructions seem to indicate the converse.
Daniel
January 12, 2013 at 3:30 am in reply to: Local installation of WordPress, Genesis, plugins et al. #11419westerdaledMemberHi WP Smith
Thanks for your reply. Can you explain: are you saying I can't just move the plugin sub directories on my live site (via ftp) and place these in the appropriate place on c:\XAMPP/htdocs/mydomain.local; running in my case on a win8 vm? If I go to WordPress plugins then I will have to re-install all the main ones I use individually & configure which will take a while.
Daniel
-
AuthorPosts