• Hello! I’m new here, so please excuse any flubs on my part. I’m running the site at pccwichita.com and have a design question. On our events page at

    https://pccwichita.pairsite.com/?page_id=57

    we’re selling advance tickets to our upcoming event. This isn’t the first time I’ve noticed that I can’t place the Google Map and the PayPal Button side-by-side instead of one above the other, regardless of how I try to set justifications or anything else I can control. I’ve searched the forums several times and can’t find anyone else asking about this (although maybe I don’t know the correct search terms).

    I’ve tried everything I can think of and the closest I can get it when I use a two-column, single-row table to place them side-by-side. I know I shouldn’t use a table for laying out text, but nothing else comes close, and this is layout for two embedded items that I can’t really control very much about.

    When I try this, it looks OK in the editor but when the page is displayed the PayPal button is “forced” downward in its cell and creates a large empty space equal to the height of the map above the PayPal button. This “forced downward” effect also happens if I use an image from my media library in the cell instead of a map, and again the empty space in the cell above the PayPal button is the height of the image.

    Right now the page is alright, but I would really prefer a more organized look. Any thoughts?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Why not create a container div the put another div that has the paypal buttons in it and use css to float that to the left then create another div that contains the map and float that to the right.

    Something like:

    <div id="container">
    <div id="left-side">
    /* paypal buttons are in here */
    </div>
    <div id="right-side">
    /* google map here */
    </div>
    </div>
    Thread Starter gemurrayx

    (@gemurrayx)

    Um. Hm. OK.

    Graphical_force, I’ve tried inserting the div id code on the page itself as you suggested and nothing has changed, so it must be more involved than that, correct?

    I have a basic understanding of what css does. Using css to solve this means not using the text editor window in my edit page but instead going to edit the style.css in the Appearance section of my Dashboard, correct? Would this then apply any changes to
    other pages
    on the site?

    This is correct.

    I think the suggestion above was that you should make your own divs with your own ids or classes assigned to those divs – then they won’t be applied anywhere else. So try adding this:

    #right-side {
       float: right;
       width: 68%;
    }
    
    #left-side {
       float: left;
       width: 30%;
    }

    But you should not modify any theme files at all – rather use a custom CSS plugin so that your changes won’t be overwritten when WP is updated.

    You beat me to it! LOL

    LOL – I should have left it for you, but at least we said the same thing (more or less) :).

    Thread Starter gemurrayx

    (@gemurrayx)

    Got it. I’ll hopefully get it working soon (wish this was my day job). Thanks!

    Thread Starter gemurrayx

    (@gemurrayx)

    OK, I’ve been trying everything I can to make this work. In addition to the information here, I’ve tried to get face-to-face help at the university I work at and found a plugin called Div Shortcode that should have simplified everything. I always hate to say this, but I can’t figure this out.

    I’m a content person by training, not a technical person. Anything that I’ve picked up on the technical side has been by keeping my eyes open and can be a bit hit-or-miss. I hate to ask anything that might take up too much of anyone’s time, but if I’m to fix this (and I would love to, because I’m sure I’ll need it again later) then I’ll need step-by-step instructions. Lead me by my nose.

    If you feel that this is out of your comfort zone, you can always hire someone in https://jobs.wordpress.net/

    Thread Starter gemurrayx

    (@gemurrayx)

    Sorry-I can’t really hire anyone for this.

    I just can’t help but think I’m missing something obvious or that I don’t know about a step that’s taken for granted I would know. I’m rather proficient in the CMS used where I work, and it has a lot of similarity to WordPress. I’m not even sure why this won’t work when I try to use a table to organize the layout. Why does content get pushed downward in the cells?

    I’m going to keep trying, I just wouldn’t mind any other help.

    Thread Starter gemurrayx

    (@gemurrayx)

    Aaaand I got it. I’m not sure how much of what I did was necessary, but I found this thread and the full code provided (substituting my own content, of course) seems to have done the trick. The problem seems to have been the map itself.

    Thanks again for anyone who was helping me here. I do realize that this is volunteer, and I appreciate the time.

    Okay, WPyogi and graphical_force… You guys rock!

    Your solution was simple and worked like a charm! Thank you ??
    Step.1: I rendered my CSS as WPyogi suggested
    Step 2: I inserted the <div id=”container”> coding in the ‘Text’ part on the page that I wanted all the alignments done on and voila!

    I have two google maps with two different addresses display on the same page. Basically: Address on the left and the Google map directly on the right hand side neighbouring eachother.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How can I align a Google Map embed’ is closed to new replies.