FAQ by Rank Math Image Center?

#158292
  • Resolved Vangelis
    Rank Math free

    FAQ by Rank Math images in the middle?

    hello,

    I would like to use the FAQ by Rank Math function and add an image.

    how can i do that with css that the images are in the middle?

    I tried the following and it does not work.

    .rank-math-answe img{
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    thanks a lot

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Vangelis,

    We are assuming you are referring to the FAQ block in the wordpress editor that is https://rankmath.com/kb/faq-schema-block/

    Have you tried it as it allows for images to be added and you can attach custom CSS to it in the settings. See step 2 – FAQ block settings.

    Try it if you have not.
    If you are referring to something else then please clarify on where this. Maybe include a screenshot.

    Thanks.

    Hello and thank you for your reply.

    yes I have gesehe the post. where can I set there what the image is displayed in the middle (center)?

    Sorry, do you have another idea for me

    unfortunately I know with CSS not so ghut out

    thanks a lot

    Hello,

    Thank you for the update, and sorry for the delay.

    By default, the image will be placed in the middle (center) of the question and answer. Please refer to this screencast:
    https://i.rankmath.com/bE9ifK

    Could you please provide more details of what you’re trying to achieve using CSS? You can also share some screenshot using this tool or record a video screencast using a tool like Loom showing the issue and edit the first post on this ticket in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    I hope that helps. Thank you, and looking forward to your update.

    Hello and thank you for your quick reply.

    I did the whole thing as they showed with the video.
    Unfortunately small images are displayed on the right and not in the middle that’s how it looks to me:

    https://ibb.co/09DhVTS

    My question is how do I get these small images displayed in the middle

    Vileen thanks

    Hello,

    Thank you for that additional information.

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Thank you, and we really look forward to helping you.

    Hello,
    I have deleted the problem.
    There are two possibilities:

    In the file: class-block.php
    At: seo-by-rank-math\includes\modules\schema\blocks

    Line: 43

    protected function get_image( $attrs, $size = 'thumbnail', $class = 'class=alignright' ) {

    I have changed it like this:

    `protected function get_image( $attrs, $size = ‘thumbnail’, $class = ‘class=aligncenter’ ) {
    `

    The second possibility is:
    In the CSS of my theme I did this:

    .aligncenter {float:center;}

    Now the image is displayed in the center

    https://ibb.co/ZJJDP01

    Hello,

    Thank you for the update.

    It seems that you have already fixed this issue by altering some CSS in your website. Could you please confirm if you still need our assistance? Or we can mark this ticket as already resolved?

    Thank you, and looking forward to your update.

    Thank you for your help and effort

    Anas
    Rank Math business

    Hello,

    We are happy that your issue is resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)

The ticket ‘FAQ by Rank Math Image Center?’ is closed to new replies.