Bob Gregor
Forum Replies Created
-
Forum: Reviews
In reply to: [WordPress Font Size] Font ResizerYou can add it to a template now using
<?php wp_fontsize::html(); ?>
wherever you want it to appear.and adding
define('WP_FONTSIZE_HTML', false);
to your wp-config.phpWidget is a good idea – that may happen in a future release
Forum: Plugins
In reply to: [WordPress Font Size] where do i add the cssJust updated the docs – they were overdue ??
Forum: Plugins
In reply to: [WordPress Font Size] where do i add the cssDear David,
1 – You add the CSS to the bottom of your style.css However – the CSS is just a guide – you need to target the elements you want to adjust. For example:
.font-size-4 h2, .font-size-4 h3, .font-size-4 p { font-size: 12pt; } .font-size-5 h2, .font-size-5 h3, .font-size-5 p { font-size: 13pt; }
2 – Should be in the top right: https://cl.circletr.ee/image/472h3o1x472v
3 – Yeah … I’m bordering the line between a theme author using the plugin and someone who needs an admin interface. When I first authored it I didn’t want to clutter the admin UX with another setting screen. We’ll see.
Another reason I don’t have an interface is that customizing the CSS takes a bit of fine tuning – you don’t want a font size breaking the layout.
Forum: Plugins
In reply to: [WordPress Font Size] PHP CodeForum: Plugins
In reply to: [WordPress Font Size] How to change position or put in Post/PageWe have added this option now – you can call
<?php wp_fontsize::html()
in your theme, and define(‘WP_FONTSIZE_HTML’, false); to disable the default html outputForum: Reviews
In reply to: [WordPress Font Size] Works, but no buttonThere isn’t any interface added – the plugin allows a theme author to add CSS classes to adjust interface elements. For a working example, see https://www.myRoseProperties.com
Forum: Reviews
In reply to: [WordPress Font Size] DeadThe plugin is for theme authors – it does not add any interface or css. It is designed to be minimal – all it does is add a stateful body class to allow you to adjust your site-wide CSS for the different font levels
+1 I’d also like to see a
“View full” option added to this awesome plugin.Forum: Fixing WordPress
In reply to: removing an action in the child themeyou need to add a hook to “after_setup_theme”
ie:
function demo_after_setup () { if(has_action('some_action', 'print_hello')){ echo "true"; }else{ echo "action deos not exist"; } } add_action('after_setup_theme', 'demo_after_setup");
get rid of the REQUIRE_ONCE. That’s not necessary after you add this hook, as WordPress as already done the require.
Forum: Alpha/Beta/RC
In reply to: 3.5 : Re-order images in Gallery brokenI’m seeing the same bug in the 3.4 branch. I can confirm the new WordPress 3.5 media experience WILL fix this bug when it’s released.
Forum: Plugins
In reply to: [WordPress Font Size] [Plugin: WordPress Font Size] Adding the CSS bitHey there! I’m not sure about the exact details of your implementation, but you will need to add a CSS selector after each of the bits that I gave you, otherwise it will not change anything. Also, if you are adding this to an existing theme, you may need to add !important to the css declarations, as there may be more specific CSS rules in the theme that are overriding these.
For example:
.font-size-1 h1, .font-size-1 p { font-size: 0.8em; }
Fixed in the latest release 0.6.1, it was a bug with PHP > 5.3 and the scope resolution operator. I love how hard to read that PHP error message is!
Forum: Fixing WordPress
In reply to: wp_update_post() not workingWhere do you define $post_id?
Also, the problem looks to be that you don’t have enough info in the $new_content array, I’d recommend looking at the defaults specified in the source for wp_update_post.
Forum: Plugins
In reply to: Overriding W3 total Cache User Agent Group theme choiceFound one:
Simple Theme Preview
Although it seems to break child themes…Forum: Plugins
In reply to: Overriding W3 total Cache User Agent Group theme choiceI’m in the same boat — looking for an elegant way to override W3 Total Cache’s handling of mobile device detection.