Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author CodeBard

    (@codebard)

    Just 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.

    Thread Starter Q-collective

    (@q-collective)

    Thank you for your prompt reply. I’ve added the rule you suggested in the custom CSS file, but without result.

    I’ve looked in the main style.css of my theme and couldn’t find a “text-align: left !important;” related to the content in question. I’ve put the content of the style.css on pastebin, if you’d like to give it a look.

    If it can’t be resolved by hand, I’ll just wait for an update of the plugin ??

    Plugin Author CodeBard

    (@codebard)

    Your 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;”>’;

    Plugin Author CodeBard

    (@codebard)

    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.

    Thread Starter Q-collective

    (@q-collective)

    Thanks again for keeping a close eye to this. I can report that the issue remains in 1.0.2. I’ll have a look at your code changes in the morning ??

    Plugin Author CodeBard

    (@codebard)

    I’ll have a look at your code changes in the morning

    It already did. You can retry reinstalling.

    After that issue is remains, then its deeper than this and cant be solved easily as such.

    Plugin Author CodeBard

    (@codebard)

    Closing this as resolved. If you still have issues, feel free to make another post.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Placement of button’ is closed to new replies.