Kye
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to change 'Posted on' and 'Posted in' text to something elseHey there.
It’s best to post in the theme authors forum this way he won’t miss it. 🙂
https://ww.wp.xz.cn/support/theme/vantage
You mentioned it’s not translating, I guess you’re going through the PO/MO?
http://codex.ww.wp.xz.cn/Translating_WordPress
If you are then you need to translate:
Posted on <a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a>And:
Posted in %1$s and tagged %2$s.
Posted in %1$s.Anyway, that wording is found here:
/vantage/inc/template-tags.php line 141
'on' => __('Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', 'vantage'),A few options, you could edit direct which isn’t recommended because you’ll lose that when the theme gets updated.
You could also use this code here:
function rename_posted_on_vantage(){ $posted_on_parts = array( 'on' => __('Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', 'vantage'), 'by' => __( '<span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'vantage' ), ); return $posted_on_parts; } $posted_on_parts = add_filter( 'vantage_post_on_parts', 'rename_posted_on_vantage');You could then do the same for the filter vantage_post_meta which is where the other part shows. That can be added a small plugin or in the child theme function.php.
http://codex.ww.wp.xz.cn/Writing_a_Plugin#File_Headers
But really if this is a translation you should go route I mentioned originally with the PO/MO.
Hope this helps.
Hey there,
The first enqueue you fed it a url to the stylesheets, the next two you fed it a url and then some css ($media) rather than an array which is what the function expects as it’s third argument.
Did you read through the pages here:
http://codex.ww.wp.xz.cn/Function_Reference/wp_enqueue_style
http://codex.ww.wp.xz.cn/Function_Reference/wp_register_styleThey’re the two functions you’re trying to use there.
Zac also gives an example you can take a look at:
http://wp.zacgordon.com/adding-css-to-wordpress-theme-via-functions-php-file/
And this:
http://ww.wp.xz.cn/support/topic/media-query-enqueue-conditional-css-stylesheets
Hope this helps.
Forum: Fixing WordPress
In reply to: Increased bandwith trafficHey there.
Ouch, that’s a lot and I’ve never had them hit one of my sites so hard in the past, and we’re usually pretty good with it over at WPMU DEV too. At least it’s resolved! 🙂
There are indeed tools you can use, for example Chrome Developer tools and PageSpeed Insights which is an extension for Chrome:
https://chrome.google.com/webstore/detail/pagespeed-insights-by-goo/gplegfbjlmmehdoakndmohflojccocli
You may also find this resource helpful:
https://developers.google.com/speed/pagespeed/
Or if you use Firefox with FireBug then you could use YSlow:
https://addons.mozilla.org/en-US/firefox/addon/yslow/
Anyway, glad to hear things are going more smoothly.
Have a great day! 🙂
Forum: Themes and Templates
In reply to: Theme: Premium StyleHey there.
No, Tim, the header height itself, which shows how high the header is. A header height of 0 means effectively no header.
The problem with being so vague in your first post is that you could be talking about the whole header, a margin or some padding in the header.
As this isn’t one of my themes and I was just trying to help, it makes it much easier if I don’t install every theme (there are many thousands) unless needed. If it’s the front end then it’s easier to use either the demo site or if it’s something more specific then a link to your own site.
One other thing to note is that if you need support with a specific theme like this one then it’s best to post in the theme authors support forum so they can see it. For this theme you can find it here:
https://ww.wp.xz.cn/support/theme/premium-style
A header height of 0 means effectively no header.
As you’re not wanting the header of the theme then it would seem pointless in setting the height to 0, you could just hide the whole header:
.site-header{display:none}You could also use a child theme and simply remove the parts you don’t require, or use this CSS.
In your media library select an image. When the image shows up on the next page you’ll see that all of it is shadowed, instead of part of it being clear.
Are you talking about the area that’s for cropping?
That area kind of darkens the image, you can either Skip Cropping or Crop Image to get past that. It should then show normally and does on mine.
But if you’re wanting that image then you probably don’t want there to be no header because that forms part of the header.
Hope this gets you in the right direction 🙂
Take care.
Forum: Themes and Templates
In reply to: [Theme Indicate] Overlap of header and menu backgroundAwesome!
Thanks for letting me know 🙂
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Child theme mess it upExcellent, as I mentioned then it seems the original CSS wasn’t included.
How could I check which changes from the parent are missing in the child and add them?
If it’s now being included then all the styles should be there, you shouldn’t need to add them back in.
You can now however start adding in your own styles to alter or extend the originals.
Also does the custom css manager edit the child or parrent?
You can edit any theme, on the top right there is a Select theme to edit drop down. Then all the files appear below that drop down.
Although css is generally safe to edit there, I wouldn’t recommend editing PHP, it’s easy to make a mistake and then take your site offline. Using FTP and a decent editor will let you revert changes easily. I know you’re not editing PHP here but just wanted to throw that out there in case 🙂
Take care and have a great day!
Forum: Themes and Templates
In reply to: [Theme Indicate] Overlap of header and menu backgroundHey there.
The image/logo being off by around 15 pixels, that’s probably due to the margin left you have defined for the logo. Using this should help there:
.logo { margin-left: 0; }And for the menu, this should sort it out:
.menu-primary-container { clear: left; }Unfortunately I can’t test in IE, I don’t have a Microslow machine. 🙂
It works on FireFox for me though. 🙂
Not sure how you’re currently handling CSS, I saw you mentioned changing colours and stuff.
There is a chance that the theme has a CSS field in the options, if not then you can make a child theme:
http://codex.ww.wp.xz.cn/Child_Themes
http://premium.wpmudev.org/blog/create-wordpress-child-theme/Or you can instead use a plugin if you like:
http://ww.wp.xz.cn/plugins/custom-css-manager-plugin/screenshots/
http://ww.wp.xz.cn/plugins/my-custom-css/screenshots/
http://ww.wp.xz.cn/plugins/pc-custom-css/
http://ww.wp.xz.cn/plugins/imporved-simpler-css/screenshots/
Have a fantastic day! 🙂
Forum: Themes and Templates
In reply to: [Ignite] Hide sidebarAwesome, that’s what I love to hear! 🙂
Have a great day!
Forum: Themes and Templates
In reply to: [Radar] How to remove style.css in head ?I saw your other message, looks like a moderator removed it.
This is a volunteers forum where most people give their time freely, I’m not the developer of this theme. I will of course try to help the best I can.
First off though, why do you want to remove the files?
Trying to reduce HTTP requests or something?
I downloaded the theme and took a quick look at the code, there is a method on line 74 called register_scripts and the CSS is registered there using wp_register_style. The file:
/radar/inc/class-theme-framework.php
You could edit directly although it’s probably best not to (for updates to the theme in the future) so you could use wp_deregister_style to remove them:
http://codex.ww.wp.xz.cn/Function_Reference/wp_deregister_style
main.css is also registered in the same file in a method called enqueue_scripts around line 143
The handle is radar-bootstrap and then radar-main, Justin wrote a great article a while back that will help you to deregister:
http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles
Hope this helps.
Forum: Themes and Templates
In reply to: [Ignite] Hide sidebarHey there.
Not sure if there is a theme option there, but you could use this CSS:
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: landscape) { .sidebar-primary-container {display:none;} } @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: portrait) { .sidebar-primary-container {display:none;} }This will let you do different things based on the orientation of the screen. Currently the CSS will simply hide it from display.
It targets a screen size between 320px and 480px
Hope this helps.
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Child theme mess it upHey there.
I took a look at your site and then realised you mentioned it’s back on the parent now, because of that I can’t see what’s occurring exactly.
You can read more about creating a child theme here:
http://premium.wpmudev.org/blog/create-wordpress-child-theme/
If I was to guess what the issues was I’d think the original css was not included, or the path was somehow wrong.
Once enabled again I’ll take another look. 🙂
As for the social icon, it looks like you’re using some plugin like AddThis. It adds social icons on the right there, I guess when you try to use the child because the theme doesn’t look right it’s somewhere else in case.
Take care.
Forum: Themes and Templates
In reply to: [Radar] How to remove style.css in head ?Hey there.
The style.css file isn’t empty by any means, it’s required for WordPress to know your theme.
Note the comments:
http://fhemo.org/wp-content/themes/default/style.css
This tells WP the name, the version and various other information.
You wouldn’t remove this. You can read more here:
http://codex.ww.wp.xz.cn/Theme_Development#Theme_Stylesheet
Take care.
Forum: Themes and Templates
In reply to: Theme: Weaver II Pro – Sidebar/Widget PaddingHey there,
As it’s the pro version we unfortunately won’t be able to assist here, sorry.
http://pro.weavertheme.com/buy-now/
You’ll need to contact the author directly on this one for support as per the WordPress forum rules here:
http://codex.ww.wp.xz.cn/Forum_Welcome#Commercial_Products
Have a great day!
Forum: Themes and Templates
In reply to: Theme: Premium StyleHey there.
That’s rather vague, but I guess you want the header in this theme:
https://ww.wp.xz.cn/themes/premium-style
To have no margin, if so then use this CSS:
.site-header { margin: 0; }If that isn’t what you need then please do elaborate further.
Have a great day!
Forum: Themes and Templates
In reply to: Activating and Using multiple themesHey there.
Take a look at the following plugin:
https://ww.wp.xz.cn/plugins/page-theme/
http://ww.wp.xz.cn/plugins/jonradio-multiple-themes/
We also wrote an article on that one:
http://ww.wp.xz.cn/plugins/jonradio-multiple-themes/
One of the commenters mentioned it was working with BuddyPress, not sure if anything has changed but wanted to mention that.
Hope this helps.