• Resolved incoum

    (@incoum)


    Hello!

    First thank you for your work, i’ve tried many front-end editors, and this one is among the best ones!

    So, now i just have a problem with the position of the “Enable WPQ Editor” button, due i have the WP Admin Bar hidden (i need it in that way for some roles in my site) ..so i wonder is there any simple way to change the button’s position(only modifying the plugin)?

    Thanks for your time!
    regards,

    – Claud

    https://www.ads-software.com/plugins/wp-quick-front-end-editor/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Labib Ahmed

    (@labibahmed42)

    Hi!
    Thanks Claud for your appreciation.
    Yes you open the file plugin.class.php from wp-quick-frontend plugin folder.
    Online 73 and 74 see following html with inline style tag. Change position from here.
    <button style="position: fixed;top: 1px;left: 35%;z-index: 999000;" class="btn btn-sm btn-default activep"> <i class="fa fa-pencil"></i> Enable WP Quick Front Editor </button>

    <button style="position: fixed;top: 1px;left: 35%;z-index: 999000;" class="btn btn-sm btn-danger deactive"> <i class="fa fa-shield"></i> Disable WP Quick Front Editor</button>
    Note: Keep same styling for acive and deactive button
    Regards:
    Labib Ahmed
    Rate if you like plugin.

    Thread Starter incoum

    (@incoum)

    Hi Labib!

    Sorry, I didn’t explain myself well.. I have “WP Admin Bar” Disabled(not hidden with CSS) for Contributors/Editors’ roles in my site, so I need to include the button “Enable WPQ Editor” inside the content (for example over the post’s title) ..Is that possible? :O

    Plugin Author Labib Ahmed

    (@labibahmed42)

    Yes.
    Just replace this code
    <button style="position: fixed;top: 1px;left: 35%;z-index: 999000;" class="btn btn-sm btn-default activep"> <i class="fa fa-pencil"></i> Enable WP Quick Front Editor </button>

    <button style="position: fixed;top: 1px;left: 35%;z-index: 999000;" class="btn btn-sm btn-danger deactive"> <i class="fa fa-shield"></i> Disable WP Quick Front Editor</button>

    with following code in plugin.class.php file on line 73 and 74

    <button class="btn btn-sm btn-default activep"> <i class="fa fa-pencil"></i> Enable WP Quick Front Editor </button>

    <button class="btn btn-sm btn-danger deactive"> <i class="fa fa-shield"></i> Disable WP Quick Front Editor</button>

    Plugin Author Labib Ahmed

    (@labibahmed42)

    Hey incoum,
    I have added option to select position of Enable button in version 4.0.Update it!
    Regards:
    Labib Ahmed

    Thread Starter incoum

    (@incoum)

    HEY! that’s great.. Thank you Labib!! ??

    Plugin Author Labib Ahmed

    (@labibahmed42)

    My pleasure!
    Rate it if you liked it.

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