Author Box Arrangement

Homepage Community Forums Aspire Theme Support Author Box Arrangement

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #19852
    B_David
    Customer

      Hi Wes –

      Well, just when you think you’re done, one more thing unravels. : ) Thanks for taking a look at this for me.

      I’m adding an author box to my blog posts. I wanted some additional flexibility in styling and positioning, so I added php code from https://www.wpstud.io/create-custom-author-box-genesis/ which works fine.

      I’m also adding in a promotional area below the author box. The plugin is Advanced Ads and it can be positioned by selecting Genesis hooks, which also works great. It’s currently positioned at genesis_after_loop which works fine until I activate the author box code.

      So here’s the issue. By default, the author box is positioned at the hook genesis_after_entry. This doesn’t work because it places the author box under the promotional area instead of above it and immediately after the post. I changed the php code so that the author box is positioned at genesis_entry_footer. So far, so good.

      Trouble is, when the author box is activated it looks like somehow it’s calling genesis_after_content – which has the effect of displacing genesis_after_entry, genesis_after_endwhile, and genesis_after_loop up into the top of the sidebar (and moves genesis_before_sidebar_widget_area way down the page (so my recent posts are near the page bottom.)

      Easier to see in screenshots. Here are the hooks before adding in the author box.

      Before Author Box - Bottom of Page

      Before Author Box - Top of Page

      And here’s how it looks after.

      After Author Box - Bottom of Page

      After Author Box - Top of Page

      I’m guessing that wp-includes / author-template.php is calling genesis_after_content, but I can’t find where (or maybe I’m way off on this).

      Would really appreciate a second set of eyes on this when you have a chance. Help me Obiwan, you’re my only hope. : )

      Thanks Wes,

      Brian

      #19853
      B_David
      Customer

        Whoops! Screwed up the order of the images. Apologies.

        Should be like this. Before Author Box is added (bottom and top of page):

        Before Author Box - Bottom of Page

        Before Author Box - Top of Page

        And after the Author Box is added (bottom and top of page):

        After Author Box - Bottom of Page

        After Author Box - Top of Page

        Sorry ’bout that. This one should make more sense. Page in question is at http://patschuler.com/uncategorized/whats-your-blind-spot-deal-with/

        Thanks again, Wes.

        Brian

        #19860
        Eric
        Customer

          Couldn’t you just use the After Entry widget? It should already be included in the theme, and it shows up under the Author Box.


          I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

          #19870
          B_David
          Customer

            Hi Eric –

            Thanks so much for the suggestion – I didn’t think of that! Really appreciate you getting back to me with your ideas. : )

            I gave the after entry widget a try, but got the same result – i.e. without the author box the ad positions properly and the recent posts stay where they belong at the top of the sidebar.

            But as soon as the author box is activated, the recent posts (in sidebar1) is displaced to the bottom of the page – and it actually looks like the webhooks that follow are reformatted to a greater width, if that’s possible. At any rate, the author box seems to be the culprit.

            A few images to show what’s happening:

            Without Author Box - Top of Page

            Without Author Box - Bottom of Page

            With Author Box, and Ad at After Entry - Top of Page

            With Author Box, and Ad at After Entry - Bottom of Page

            I’m pretty sure it’s not a conflict with the Advanced Ads plugin, because the hooks are reordering as soon as the author box is activated – regardless of whether Advanced Ads is active.

            Even with Advanced Ads deactivated, the author box is causing three hooks (g-after-entry, g-after-endwhile, and g-after-loop) to migrate to the top of the sidebar – so it definitely appears to be creating unexpected consequences. Just not sure why.

            Ideas? This is a head-scratcher for me. Really appreciate any insights you have.

            Thanks again,

            Brian

            #19883
            B_David
            Customer

              Hi Wes –

              Quick update: I think the culprit here may be the .php code that I added. I was able to do some testing this afternoon and it looks promising.

              We migrated servers this afternoon, and I haven’t been able to work through the details, but I’m hoping that by returning to the theme author box the problems might go away.

              Didn’t want you burning a lot of late-night time on this one at this point – will keep you in the loop.

              Thanks as always,

              Brian

              #19901
              B_David
              Customer

                Hi Wes –

                So I think I have the page layout issues addressed on this one. Using the theme author box seems to resolve the problem.

                But I’m running into an issue styling the theme author box – I must be trying to make changes in the wrong place. Here’s what I’m doing:

                1) I’ve changed the WP settings to enable an author box for one user: Users / User / Author Archive Settings / Enable Author Box on this User’s Posts

                2) I’ve been applying the styling changes to the class .author-box in the theme’s css.

                So far, none of the changes have shown up on the web page. Is there a different file or class that I need to be styling, or am I overlooking something simple?

                Thanks for the great help as always – we’re in the home stretch on this one. : )

                #19922
                Eric
                Customer

                  @B_David if your layout shows up distorted it could be an HTML error. If you’re missing open/close divs or any other containers in HTML, it will cause the rest of your site to show up improperly (in reference to your reply earlier about the sidebar, etc).

                  I can see tables in a gray box right under the Author Box with inline custom code added. Is that the part you’re trying to edit? Because I don’t see any code added to the CSS for that. If you make edits to the Author Box in the CSS it should show up.


                  I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                  #19930
                  B_David
                  Customer

                    Hi Eric –

                    Thanks so much for jumping in on this! I really appreciate the help. : )

                    Actually, it’s the author box that I was unsure about. The changes I was making to the author-box class weren’t taking, and led me to think that I might be trying to style the wrong selectors. Turns out that there were some connectivity issues getting in the way – discovered this morning that the changes I made last night did in fact show up a few hours later. I think all is resolved at this point (knock on wood) – apologies for the false alarm.

                    Good thought on the missing open/close divs – will check that out. Could be at the root of the layout issue.

                    Thanks again for the help! Hope you have a good night ahead.

                    Brian

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.