Site logo

Archived topic

Unable to make Element work correctly

8 replies · Started by Ken on September 1, 2021

Viewing posts 1–9 of 9

Hi There!
First, Please see attached screenshot.
Mac mini late 2012 macOS 10.15.7 Catalina

Problem; I want the disclosure to come under the photo. Looking at the documentation it should work with
"generate_after_entry_header hook.
But as you can see from the screen shot, it's below the title.

Can you tell me how to get this discloser under the image?

If it's not possible, then I'll have to use AdInserter, not my favorite, but I'll use it if it's my only choice.

Thank you for your time, help, understanding.

Hi Ken,

Can you assign a high value to the priority value of the Element you're hooking in?

try placing 99.

I believe your layout for featured image on post pages is set to "Below title".

This setting is basically doing add_action( 'generate_after_entry_header', 'generate_blog_single_featured_image' ); so if you're hooking something else to generate_after_entry_header and you want it to go below the single post page's featured image, you may have to assign a higher priority number for it.

Elvin! Thank you! Priority 99 did the trick! ٩( ᐛ )و

Again, you folks blow me away with how fast, and easy a solution you come up with.
Please close this ticket with a smile. good to go here! \(*<>*)/

OOps, sorry, Just noticed a new problem. With the One Product Post a custom post I now have two lines. I'm wondering if my coach did something to auto add below the image.

Can you give me some suggestions?

Note: the 99 for the element hook works great. There's some other coding that's adding a line to ONLY this custom post type. No problem with the other custom post types.
If you need access to my WP dashboard please use the temporary login. it's good for a week.

With the One Product Post a custom post I now have two lines.

Can you link me to a sample page? And perhaps pinpoint its occurrence?

Link is below.

The disclosure that is aligned left is the GP Elements Hook - I'm trying to figure out how to center it.

The centered disclosure is the problem. I can't find where it comes from and would like to delete it.

Hi Elvin,
I just now got a reply from my Coach. Yes, she added it to this custom post type. Here's here reply.

"If you want to remove it from the custom post template and use the Element Hooks solution you need to go into File Manager. Drill down into the child theme and then into the template parts. This line needs to be removed: echo '<p style="font-size: 14px; line-height: 13px; text-align: center;">*<i>This post may contain affiliate links for which I earn commissions.</i>*<br/><br/><br/></p>';

I'm going to try and delete it and I'll let you know if it worked or not. Please stand by.

Okay Elvin,
My coaches advice worked! And not only that, using her code I pasted it into the Element to get the disclosure 'centered'.

Wow, between the two of you, I feel like I can never go wrong. LOL!
Seriously, thank you for your help, even with my coaches reply, I'd still be stuck with the disclosure under the title.
So couldn't have done this without your help.
Now, this time, I'm marking this topic resolved! ٩( ᐛ )و

Nice one. Glad you got it sorted. (and yeah it's real nice to be mentored. :D )

This archived topic is closed to new replies.