Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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!
    D

    #815852

    Hey 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,
    Nikko

    #815885

    I’d rather not put my client’s URL in here, is it possible to PM you the website?

    #815891

    Hey!

    You can post it in private content field and it would be only visible to you and us, moderators :)

    Best regards,
    Yigit

    #815932

    OK thanks! I put it in Private Content below.

    #816548

    Hi Guys,

    Any thoughts on why this works for Posts but not Portfolio Items?

    Thanks!
    D

    #817525

    Hi,

    That is because the classes used are different, so they are different on the end results.

    Best regards,
    Basilis

    #817542

    Thanks 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” ?

    #817672

    Hi 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,
    Victoria

    #817728

    Hi 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,
    D

    #819024

    Hi,

    We are happy for letting us know!
    Please post any reply for us.

    Best regards,
    Basilis

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