This topic has 9 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #151493
     HDcms
    Participant

    Hello,

    I can not put text under a picture (and not next to it)
    The image is part of the content inserted in the wordpress editor.
    The description is generated in functions.php

    How to oblige (necessarily all the time) a line break after the content inserted in the editor?

    *** code functions.php

    if (!is_admin() AND is_singular() AND !is_page() ) {
    $toutContenu =$avantContenu ;
    }
    $toutContenu .= $content ;
    if (!is_admin() AND is_singular()  AND !is_page() ) {
    $toutContenu .='<div>  Premier </div>’ .$apresContenu ;
    return $toutContenu;

     

    #151639
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #151882
     Radu
    Moderator

    Why you don’t put directly form editor under image a line brake ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #151893
     HDcms
    Participant

    Hello,
    Thank you for your interest
    I tried but it will not work depending on the pictures.
    The images are aligned left in the theme. Difficult to understand the authors, it is more interesting to force after the content in the editor, the return to line in functions.php
    $toutContenu .='<div> Premier </div>’ .$apresContenu ; !!
    Regards

    Attachments:
    You must be logged in to view attached files.
    #152122
     Radu
    Moderator

    We don’t have a code for that, this it’s not a theme problem it’s a customization request and out support cannot cover those kinds of problems.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #152153
     HDcms
    Participant

    Hi
    Ok I understand even though I think this is the default alignment of the image (theme ?)
    Regards

    #152229
     Radu
    Moderator

    You have added that image from WordPress editor and you are able to choose the image position to left, right etc..

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #152241
     HDcms
    Participant

    HI,
    Thanks for your tip 🙂

    For info with another theme, with the same program, I have the back to line naturally.
    http://www.alterweb.info/test/
    I am still looking for another solution, because I do not necessarily know the editors of articles (and therefore difficult to explain).

    #152316
     HDcms
    Participant

    HI,
    I think I have found the solution that works

    COPY CODE
    ... if (!is_admin() AND is_singular() AND !is_page() AND ($catSiteWeb OR $catDoc OR $catLieu)  ) { 
      $toutContenu .= "<div style='display: inline-block!important;width: 600px;' > </div>" .$apresContenu ;
    } ...

    Do not see any problems?
    Regards

    #152390
     Radu
    Moderator

    Reading the code it’s correct
    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?