Forum Replies Created

Viewing 15 replies - 151 through 165 (of 209 total)
  • Thread Starter figure2

    (@figure2)

    Thanks Jan. The site in question isn’t ready to show so I threw together a generic sample using the Twenty Thirteen theme.
    http://gallery-test.markhannondesign.com/

    As you can see, there are 4 columns and 3 rows. The bottom row is only 3 columns. The client wants to center the bottom row.

    Now I could certainly target the first thumbnail in the third row with “#gallery1 .gallery-item:nth-child(9){}.” But what happens if they add another staff member? The gallery layout would break and I would get a call from an unhappy client. Good web design anticipates these possibilities which is why esmi’s answer surprised me.

    Rewriting the gallery shortcode function is a bit beyond my skill level so I am thinking that I should ask my client if they can live with the last row aligned left.

    Thread Starter figure2

    (@figure2)

    @emsi: That was what I tried first. I was hoping that each row might be wrapped in a div or some other kind of container. At least then I could assign the row wrapper a property of inline-block and set the left & right margins to auto.

    But that is not the case. Each gallery item is loose in its row and the rows are only separated by
    tags.

    If you are not familiar with the native WP galleries, create one and see for yourself.

    figure2

    (@figure2)

    Here is an interesting discovery I made: agentace’s fix works great only when certain conditions are present.

    If the main content window on the posts page where the loop operates has anywhere from one to three posts, that </div> on line 70 has to come out. If you add a 4th post and “Customize–>Front Page–>Number of Posts” is set to more than 3, the layout again breaks but can be fixed if you add that </div> back in at line 70.

    I hope the theme developer is taking note of this because this theme needs some work.

    Thread Starter figure2

    (@figure2)

    So has the theme developer completely stopped supporting his theme? I downloaded and used this theme because it had a good rating. Maybe I need to leave a review of what happened to my client and the developer’s lack of support.

    I was able to apply the fix offered by agentace above to my child theme and it seems to fix the problem. However 2 people connected with this project who are using Windows laptops have reported that the right sidebar ends up in the footer (I am still trying to collect info on their specific OS). The site displays perfectly on Mac machines and most PCs.

    Is it possible that some PC laptops are loading the page using a different template or perhaps are using the page template in the parent folder instead of the child theme folder? It’s a perplexing problem.

    Thread Starter figure2

    (@figure2)

    Cool. Thanks!

    Create a child theme of Magazine Basic, then go into header.php. On lines 41 & 42 (see below) change the words “remove” to some other class name of your choosing.

    $header_class2 = ( ! $logo && 'blank' == $text_color ) ? 'remove' : $header_class;
    $class = ( $logo ) ? ' class="remove"' : '';

    One workaround you could use for this is to upload the original image to your media library. ImageMapper allows you to select an existing image from the library rather than upload a new image.

    Step 2 would be to install the “Enable Media Replace” plugin which allows you to swap out the image file for any of your media library listings.

    Haven’t tested it but it seems like it should work.

    Thread Starter figure2

    (@figure2)

    I removed that code from the header with no apparent ill effects and the IE8 netrenderer.com test came out clean. Something I’ll definitely add to my workflow for the future.

    Thanks for the help.

    Thread Starter figure2

    (@figure2)

    Thanks for the tip. This theme is built from the Starkers theme and that code was already in place. I’ll try removing it and see what happens.

    Modernizer allows the html5 and css3 elements to display in older versions of IE but I wasn’t happy with how some elements looked so the conditional CSS was to tweak those few issues.

    Thread Starter figure2

    (@figure2)

    Problem solved. I googled the first part of the error and found this page of the codex: http://codex.wordpress.org/FAQ_Troubleshooting

    Scroll way down the page and I found this paragraph: “If the error message states: Warning: Cannot modify header information – headers already sent by (output started at /path/wp-admin/admin-header.php:8) in /path/wp-admin/post.php on line 569, then the problem is at line #8 of admin-header.php, not line #569 of post.php. In this scenario, line #569 of post.php is the victim. It is being affected by the excess whitespace at line #8 of admin-header.php.”

    So basically the problem was on line 2 of my functions.php file. Taking a look, I saw that the opening “<?php” began on line 2. I deleted the return on line 1 so the opening <?php moved up. After a refresh, my login screen reappeared.

    Whew! What a wild goose chase.

    Thanks for the help.

    Thread Starter figure2

    (@figure2)

    Sorry, that would have been a good thing to include, right? See below:

    “Warning: Cannot modify header information – headers already sent by (output started at /home4/username/public_html/wp-content/themes/stratford-vna/functions.php:2) in /home4/username/public_html/wp-includes/pluggable.php on line 875”

    You can see it for yourself if you add the “/wp-admin” after the URL.

    Glad it worked. You now have most of your workflow figured out.

    Where did you copy the URL from? Were you in the editing page when you copied the link? If so, that’s where the link will lead to. Be sure you first click the “View Page” or “View Post,” depending which you are editing. Once you are viewing the public page, you can safely copy the page link for use in your caption link.

    A couple tips: keep the editing and public page open in 2 separate tabs so you can quickly switch back & forth between them. Have a text editing app like NotePad open to temporarily store links in case you accidentally copy other data and clear the link from your clipboard before you paste it into your caption link.

    Hopefully your version of WordPress is current (version 3.6.1). If it is, access the image directly from the media library. This is how it’s configured.

Viewing 15 replies - 151 through 165 (of 209 total)