• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Move submit comment button

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Move submit comment button

This topic is: resolved

Tagged: comment, submit button

  • This topic has 5 replies, 2 voices, and was last updated 8 years, 11 months ago by LHWC.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 27, 2016 at 3:50 pm #190333
    LHWC
    Member

    I'm trying to move the option I have to upload photos with comments by adding an action to the function.php file of my theme.
    I need to move the "choose file" option just above the "Submit Comment" button. Please take a look at this link and you'll see the placement of the upload option http://livinghealthywithchocolate.com/desserts/egg-free-chocolate-chip-cookies-paleo-vegan-6685/#respond
    Can you please help me write the function to move it up above the submit button? Thanks!!

    P.S. the plugin to upload photos is called Comment Image. The author of the plugin said that the problem is where my theme calls the "comment_form" injection action. And he said I'd have to code a custom comment form to make this happen. I'm not really sure how to make this work and move the submit button's position.

    http://livinghealthywithchocolate.com/desserts/egg-free-chocolate-chip-cookies-paleo-vegan-6685/#respond
    July 27, 2016 at 4:33 pm #190336
    Christoph
    Member

    Hi,

    I'd try moving them with CSS first:

    .form-submit input[type="submit"] {
        margin-top: 70px;
    }
    
    .comment-form p:last-of-type {
    margin: -210px 0 80px;
    }

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 27, 2016 at 4:54 pm #190339
    LHWC
    Member

    Thank you Christopher! Using CSS works, but it looks different on different browsers. Your CSS looks perfect on Chrome but on Safari the upload option is on top of the rating. And also on mobile it's looks off. Do you have any suggestions? Thank you very much!

    July 27, 2016 at 5:02 pm #190340
    Christoph
    Member

    Sorry, you'd have to use Safari's Dev Tools and play with the margin.
    You could try adjusting the margins in the media queries for mobile.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 27, 2016 at 5:18 pm #190341
    LHWC
    Member

    So I am using it both on chrome and safari to see what works, and somehow the margin of -210px places the option in different places in each browser. A margin of -175px in Safari works but not in chrome.

    comment-form p:last-of-type {
    margin: -210px 0 80px;

    July 29, 2016 at 12:03 am #190421
    LHWC
    Member

    I was able to make it work on all browsers and mobile. Thank you so much Christoph!!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble