Home>Support>alignment of media in page or post

alignment of media in page or post

Hi,
I have installed Black Studio TinyMCE Widget as you recommend. I also have TinyMCE Advanced installed.
When I’m in Visual editor and click on Add media I have no option for defining image alignment with the text. I’ve seen a couple of tutorial and they show a window with alignment option when adding media (e.g. http://youtu.be/FxxFt3a0T5w).
Do I miss some plugin? How can I fix it?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 19 days ago phil_traveler

    Actually I found out you can do it by clicking on the image when inserted!
    Is there a way to do it for embedded video too?

  2. 9 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    Hi phil_traveler

    You can try aligning videos manually by clicking over to the Text tab in the widget and wrapping the video code as follows:

    <div style="text-align:center">
    
    <iframe width="560" height="315" src="https://www.youtube.com/embed/Nt39DpEmkP0" frameborder="0" allowfullscreen></iframe>
    
    </div>
    

    You can change the center value to left or right too.

  3. 9 years, 19 days ago phil_traveler

    Hi Andrew,
    I did what you wrote but the embedded video now fits screen width. Maybe there’s a misunderstanding I want it to be aligned with the text paragraph.
    Phil

  4. 9 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    Videos in Vantage will usually be full width due to FitVids running in the background. FitVids ensure that your video sizing responds dynamically to different devices. The downside is they are pushed full width. So that might be one challenge.

    In terms of aligning with text, can I see the page we’re working with?

  5. 9 years, 19 days ago Private Message - phil_traveler

    This is a private message.

  6. 9 years, 19 days ago Private Message - phil_traveler

    This is a private message.

  7. 9 years, 19 days ago phil_traveler

    I tried two different solution, you see them on the same page
    1. Using Page builder, I set two column in the row and embed the video in the second one. Problem the video box is too high showing black space on top and bottom
    2. In a single-column row I embedded the video using Advanced Responsive Video Embedder plugin. I can adjust the video maxwidth but can’t figure out how to align with text since code is just

      [youtube id="whL4NsrOhPQ" maxwidth="350"]  
  8. 9 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    Could you perhaps just insert a column on the left for the video and a column on the right for the text?

  9. 9 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    Or try this:

    <span style="text-align: center">
    [youtube id="whL4NsrOhPQ" maxwidth="350"]  
    </span>
    
  10. 9 years, 19 days ago phil_traveler

    I fixed the black bars, but the video is not vertically aligned with text. How can I do it?
    The other code doesn’t show any changes.

  11. 9 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    Hi Phil_traveler

    Would it be possible for you to create a temporary admin account for us so we can log in and take a look? You can create the account with the following email address:

    [email protected]

    Just navigate to Users > Add New in your WordPress admin. Enter siteorigin for the username and [email protected] for the email address. Make sure you’ve selected Administrator for the role and enabled the “Send Password” field so we receive the details.

    Once we’re finished taking a look, you can delete this account. We’ll let you know when to do that.

  12. 9 years, 19 days ago Private Message - WordPress

    This is a private message.

  13. 9 years, 19 days ago Private Message - Andrew Misplon Hi, I Work Here

    This is a private message.

  14. 9 years, 19 days ago Private Message - phil_traveler

    This is a private message.

  15. 9 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    http://thebutterflyhunter.net/starthere/

    Building the layout with Page Builder is the only easy way I can see to handle this.

    Using the Text widget instead of the Visual Editor widget stops a paragraph being inserted above the video. That was causing the little bit of space.

  16. 9 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    For centering I just edited the row in question, click Attributes and inserted into CSS Styles:

    margin: 0 auto
    max-width: 857px
    
  17. 9 years, 19 days ago phil_traveler

    Awesome! Great!
    Last question: How to reduce the distance between widgets? I want the headline “Why Inspiration is so important” to be closer to the box below, and the same for the other sections below.
    Also within a visual editor is it possible to reduce the distance between paragraphs?

  18. 9 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    Glad to hear we’re making progress :)

    1. In this row: Why Inspiration is so important. Edit the row by clicking the wrench icon far right > Edit Row > Theme tab > No Bottom Margin. Try that.

    2. Assuming you only want to change paragraph spacing in some widgets you’d need to try this:

    a. Edit the widget.
    b. Click Attributes top right.
    c. Insert the following as a Widget Class:

    custom-paragraph
    

    d. Insert the following at Appearance > Custom CSS:

    /* Custom Page Builder */
    
    .entry-content .custom-paragraph p {
    	margin: 1em 0;
    }
    

    Adjust 1em as required em can be changed to px. The value represents top and bottom. Can be changed to four values which would then represent top right bottom left:

    margin: 1em 0 1em 0;

  19. 9 years, 19 days ago phil_traveler

    I tried to make the change in some rows as you wrote. And it worked. But for the Why inspiration raw there still was some margin. So I changed the text from header to paragraph and changed font size to look like before. and it worked.

    Then I wanted to change paragraph margin in the widget “Hi I’m Phil… where to go…”, I inserted the widget class and the custom css, but nothing changes. Do I have to insert something in Widget Styles>Attributes> CSS Styles ?

  20. 9 years, 18 days ago Andrew Misplon
    Hi, I Work Here

    We’re not using CSS Styles because we’re targeting our class from Appearance > Custom CSS. Can you confirm that the following has been inserted at Appearance > Custom CSS?

    /* Custom Page Builder */
    
    .entry-content .custom-paragraph p {
    	margin: 1em 0;
    }
    

    I can’t see it there.

    Side note, the following in your Custom CSS, these are really broad selectors, it might cause problems targeting them like this. I’d consider removing them.

    div {
    text-align:center;
    }
    
    ul {
    display:inline-block;
    }
    
  21. 9 years, 18 days ago phil_traveler

    yes I confirm it is in Custom CSS

     /* Custom Page Builder */
    
    .entry-content .custom-paragraph p {
    	margin: 1em 0;
    }
    

    the reason I added

    div {
    text-align:center;
    }
    
    ul {
    display:inline-block;
    }
    

    is because in the home page I have a metaslider Image I don’t want to stretch (there is a text inside). Is there maybe another way to prevent it?

    I understand this thread is becoming too long, I promise this i my last question.

  22. 9 years, 18 days ago Andrew Misplon
    Hi, I Work Here

    I’ll look into the first issue now.

    div and ul lack specificity, all of your content is in a div at some point and lists are used regularly. If you just need to stop Meta Slider stretching you can do that from Appearance > Theme Settings > Home > Home Slider Stretch. Disable that setting.

  23. 9 years, 18 days ago Andrew Misplon
    Hi, I Work Here

    I moved your Custom CSS from Simple Custom CSS to SiteOrigin Custom CSS. The new rule is now reflecting. Consider de-activating Simple Custom CSS and just using SiteOrigin Custom CSS.

    You can now go to Appearance > Custom CSS and adjust the paragraph margin rule.

    For it to work you’ll need to remove the CSS Styles you inserted and just use the CSS Class.

  24. 9 years, 18 days ago Andrew Misplon
    Hi, I Work Here

    So just use Row Class don’t use CSS Styles in this case.

  25. 9 years, 18 days ago phil_traveler

    ok, perfect I did what you say.
    Thank you so much Andrew for your help. Site origin support is really top class!
    I’ll tell all my friends.
    Phil

  26. 9 years, 18 days ago Andrew Misplon
    Hi, I Work Here

    Awesome :) Glad to hear that helped.

    Thanks for your support.

  27. 9 years, 9 days ago phil_traveler

    Hi Andreaw,
    sorry to come back on this tread. I just updated the last version of Vantage Premium.
    The row ( “Inspiration:” and bullet points) I modified according to your indication

     margin: 0 auto
    max-width: 857px 

    is not showing properly now. How to fix it?
    http://thebutterflyhunter.net/starthere/
    Thanks

  28. 9 years, 9 days ago Andrew Misplon
    Hi, I Work Here

    No problem.

    Can you please, check, when you de-activate Easy Google Fonts, is there any change?

  29. 9 years, 9 days ago phil_traveler

    It’s a mess! After I deactivate it everything from that section on is no more visible!

  30. 9 years, 9 days ago Andrew Misplon
    Hi, I Work Here

    The problem as I see it right now is that the text underneath the heading: Why Inspiration is so important is rendering vertically.
    I’ve seen this happen with Easy Google Fonts in Page Builder before but am not sure why.
    So specifically, when you de-activated Easy Google Fonts, did that text start to render normally in full width, left to right fashion instead of vertically?
    We might just be looking at an incompatibility between Easy Google Fonts and Page Builder.

  31. 9 years, 8 days ago phil_traveler

    The problem seemed to be the code

      margin: 0 auto
    max-width: 857px 

    I removed it from the row, and now the allignement is orizontal.
    Tried to set the borders of the raw (and widget) in the Attributes > CSS

      border-right: 10px;
    border-left: 10px; 

    tried also with margins, but can’t get back the effect of getting smaller width than rest of the page, as it previously was

  32. 9 years, 8 days ago Andrew Misplon
    Hi, I Work Here

    Nicely done. Can you just remind me quickly. Do you want the page contents to the same width as your blue box: INSPIRATION IS THE REASON YOU SHOULD TRAVEL ?

  33. 9 years, 8 days ago phil_traveler

    Just a bit wider

  34. 9 years, 8 days ago Andrew Misplon
    Hi, I Work Here

    Sorry! Lost you along the way here.

    The blue box has a max-width set manually using CSS:

    INSPIRATION IS THE REASON YOU SHOULD TRAVEL
    And the reason you won’t miss travel (so much)

    To adjust that just edit the widget and adjust the max width set under Attributes.

    If you have a moment, a screenshot with arrows etc indicating what you’d like to do is helpful. Apologies for the delay. We’ll get you sorted as soon as possible.

  35. 9 years, 7 days ago phil_traveler

    I fixed the width issue, but still couldn’t for the margin (text too close to the widget box).
    I tried to add margin in attributes>css, but it doesn’t change.
    I don’t understand how to insert a screenshot here.

  36. 9 years, 7 days ago Andrew Misplon
    Hi, I Work Here

    If you upload your screenshot to your Media Library you can then click on the image in the Media Library and copy the image link located in the right column.

    I’m unable to view your site at the moment:

    http://thebutterflyhunter.net/starthere/
    Parse error: syntax error, unexpected ‘}’ in /home/thebutt3/public_html/wp-content/themes/vantage/functions.php on line 468

    Did you perhaps try edit the theme functions.php file? All WordPress.org themes completely overwrite their own folders during theme updates. No changes should be made directly to the parent theme files as those changes won’t survive a theme update.

    To recover, go to /wp-content/themes/ on your server using either FTP or Hosting File Manager. Delete the “vantage” folder. This will allow admin access again.

    To re-install, find the ZIP file here for Vantage Premium:

    Private Snippet

    You can install from Appearance > Themes > Add New: Upload Theme > Activate.

  37. 9 years, 7 days ago phil_traveler

    ok, I try to do that (I opened a thread for that issue). By doing that do I lose all my Custom CSS? There is a way to save /copy it before I cancel the theme?

  38. 9 years, 7 days ago phil_traveler

    ok, I fixed it through C-panel (deleted the code I added in the functions.php). Thanks.

    Back, to teh previous post. This is the screenshot, taken from a tablet. The issue is text is too close to the border (“etc.”).
    http://thebutterflyhunter.net/wp-content/uploads/2015/10/IMG_35311.png

  39. 9 years, 7 days ago Andrew Misplon
    Hi, I Work Here

    Sure. Edit the widget concerned, click Attributes top right and in the CSS Styles field insert:

    padding: 20px
    
  40. 9 years, 6 days ago phil_traveler

    Ok, fixed! thanks a lot

  41. 9 years, 6 days ago Andrew Misplon
    Hi, I Work Here

    Super, glad to hear you made progress.

    All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More