Tagged: CSS, featured image, php, Portfolio, title
-
AuthorPosts
-
July 3, 2017 at 10:47 am #815782
Hi,
I’m trying to move my page titles ABOVE the featured image throughout my site.
For posts, I implemented the fix discussed here:
But it does not work for Portfolio items.
Can anyone tell me how to do this for Portfolio items?
Thanks!
DJuly 3, 2017 at 12:50 pm #815852Hey sdigit,
Can you give us a link to your page? so we can check further and know why the code I gave there doesn’t work on your end.
Best regards,
NikkoJuly 3, 2017 at 1:45 pm #815885I’d rather not put my client’s URL in here, is it possible to PM you the website?
July 3, 2017 at 1:58 pm #815891Hey!
You can post it in private content field and it would be only visible to you and us, moderators :)
Best regards,
YigitJuly 3, 2017 at 4:06 pm #815932OK thanks! I put it in Private Content below.
July 5, 2017 at 12:06 am #816548Hi Guys,
Any thoughts on why this works for Posts but not Portfolio Items?
Thanks!
DJuly 6, 2017 at 11:03 pm #817525Hi,
That is because the classes used are different, so they are different on the end results.
Best regards,
BasilisJuly 7, 2017 at 12:26 am #817542Thanks Basilis.
So, would it then be as simple as to take Nikko’s code for post pages:
function move_featuredimage_script(){ ?> <script type="text/javascript"> (function($){ function move_featuredimage() { jQuery("#top.single").find(".big-preview.single-big").insertAfter(".entry-content-wrapper .entry-content-header"); } move_featuredimage(); })(jQuery); </script> <?php } add_action('wp_footer', 'move_featuredimage_script');
and replacing “.big-preview.single-big” with “.page-thumb” ?
July 7, 2017 at 8:56 am #817672Hi sdigit,
I would say, it is a better solution to edit the portfolio entry template and have it rendered correctly from the beginning, rather than having a jumping title on slower internet speeds or when having issues with JavaScript.
Let me know what you think.
Best regards,
VictoriaJuly 7, 2017 at 10:33 am #817728Hi Victoria,
That sounds very reasonable, thanks.
I’ll try to piece this together on my own (I’m not a developer) but if anyone has suggestions or a resource I can reference, that’d be appreciated!
In either case I will post the solution here when I’m done.Thanks again,
DJuly 10, 2017 at 11:24 pm #819024Hi,
We are happy for letting us know!
Please post any reply for us.Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.