CodeBard
Forum Replies Created
-
I updated existing 1.0.2 with relevant code changes.
If you force an update through your plugin list or download and ftp the files manually, your problem may go away.
The option to show button in pages and different post types than normal posts wont be in 1.0.2.
It may be added to next.
Forum: Plugins
In reply to: [CodeBard's Patron Button and Widgets for Patreon] Placement of buttonI updated existing 1.0.2 with relevant code changes.
If you force an update through your plugin list or download and ftp the files manually, your problem may go away.
Forum: Plugins
In reply to: [CodeBard's Patron Button and Widgets for Patreon] Placement of buttonYour css verifies in css lint, so its not due to broken css. Indeed there isn’t any !important declarations either. It may be due to some other style that is being printed out by any of your plugins.
At this point best would be to wait for the next update. Or you can go to widgets.php in plugin_core/folder and then change widget codes as below
from
<div style=”text-align: <?php echo $cb_p6->opt[‘sidebar_widgets’][‘insert_text_align’]; ?>;
to
<div style=”text-align: <?php echo $cb_p6->opt[‘sidebar_widgets’][‘insert_text_align’]; ?> !important;
For both.
Also in core_actions.php
$append.='<div class=”‘.$this->internal[‘prefix’].’patreon_site_widget” style=”text-align:’.$this->opt[‘sidebar_widgets’][‘insert_text_align’].’;”>’;
to
$append.='<div class=”‘.$this->internal[‘prefix’].’patreon_site_widget” style=”text-align:’.$this->opt[‘sidebar_widgets’][‘insert_text_align’].’ !important;”>’;
and
$append.='<div class=”‘.$this->internal[‘prefix’].’patreon_site_widget” style=”text-align:’.$this->opt[‘sidebar_widgets’][‘insert_text_align’].’;”>’;
to
$append.='<div class=”‘.$this->internal[‘prefix’].’patreon_site_widget” style=”text-align:’.$this->opt[‘sidebar_widgets’][‘insert_text_align’].’ !important;”>’;
Forum: Plugins
In reply to: [CodeBard's Patron Button and Widgets for Patreon] Placement of buttonJust one thing: The button, both in the sidebar widget and in the post button, always seem to be aligned to the left
The settings in post and widget tabs should allow you to align left, right and center.
If they aren’t doing that, then your theme’s css may be overriding it through strong declarations like text-align: left !important;.
That even overrides style declared in button element.
To fix that, you can add the below rule to any css that is being loaded in your theme:
.widget_cb_p6_sidebar_site_widget {
text-align:left !important;
}
I may add a rule to force alignment and style declarations for widgets and button in next version.
The on/off post button only turns post button on or off.
It shouldnt affect widgets. Widgets will be there if you add them. Even if you turn of post buttons.
———————————–
A ‘show on pages’ or ‘show on post types’ option may be useful for the next version, however.
.widget_cb_p6_sidebar_site_widget ul, .widget_cb_p6_sidebar_site_widget li {
list-style:none;
}
Style should make them go away. You can put it anywhere in your theme allows.
Also, and this is a suggestion, it would be nice to have the possibility to choose whether or not the button appear on pages or not. Per default the post button appears everywhere.
Post Button settings tab in settings has post button enable/disable as the first setting. That should do it.