WordPress.org

Forums

All In One Schema.org Rich Snippets
[resolved] Not deleting or moving area, but alignment? (5 posts)

  1. sasteffl
    Member
    Posted 1 year ago #

    I understand you don't allow the snippet to be moved from top to bottom or sidebar, but can we simply have it float in the middle of the page instead of left align by editing the stylesheet?

    If not would making it cover 100% of the box be a better option (and if so how might I do that?)

    PS thanks for the awesome plugin for newbs like me!

    https://wordpress.org/plugins/all-in-one-schemaorg-rich-snippets/

  2. sasteffl
    Member
    Posted 1 year ago #

    bump?

  3. Sujay
    Member
    Plugin Author

    Posted 1 year ago #

    Hey, Firstly thanks for the compliments. :-)

    As for your query, to adjust size or the default design of the snippet you will need to make changes in the CSS code of the plugin, if you are comfortable editing the code please do so.

    More specifically '#snippet-box' is the rule in the CSS file of the plugin that controls the size of snippet box.

    Let me know if this helps.

    Regards,
    Sujay

  4. sasteffl
    Member
    Posted 1 year ago #

    Hi there Sujay, thanks for answering!

    I tried this update in the CSS Stylesheet and it doesn't appear to be working:

    #snippet-box { width: 99% !important; }
    background: #F0F0F0;
    background: linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    background: -o-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    background: -moz-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    background: -webkit-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    background: -ms-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    border: 1px solid #ACACAC;
    font-family:inherit;
    font-size: 13px;
    padding: 0;
    margin: 0 0 15px 0;
    float: left;
    width: 99% !important;
    clear: both;

  5. django_75
    Member
    Posted 1 year ago #

    Your closing bracket should be at the end of the CSS rules

    #snippet-box { width: 99% !important; //"}" Should not be here
    background: #F0F0F0;
    background: linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    background: -o-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    background: -moz-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    background: -webkit-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    background: -ms-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
    border: 1px solid #ACACAC;
    font-family:inherit;
    font-size: 13px;
    padding: 0;
    margin: 0 0 15px 0;
    float: left;
    width: 99% !important;
    clear: both;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All In One Schema.org Rich Snippets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.