Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1072113

    Hi Ismael,

    You’ve asked that opened a new thread to work on this issue.

    On my staging server, I use the Modern Business blog style, with single author, big preview pic (no author pic…..)
    I would like to move the post meta data just below the post title/category

    link to the bog list page: http://silviafindings.staging.wpengine.com/jewellery-corner (hosted on WPengine)
    link to the single blog post: http://silviafindings.staging.wpengine.com/the-2019-maple-ridge-lapidary-club-rock-gem-show-is-on-this-weekend

    I have applied the following latest modification in the functions.php file (which does not seem to work any longer)

    // move post meta info
    add_action('wp_footer', 'avf_move_post_meta');
    function avf_move_post_meta(){
    ?>
    <script type="text/javascript">
    (function() {
    	var body = document.getElementsByTagName( 'body' )[0];
        var entry = document.querySelectorAll(".entry-content-wrapper");
    	var meta = null;
    	var title = null;
    	
        if( entry ) {
    		if( body.classList.contains( 'single' ) ) {
    			if( ! body.classList.contains( 'single-post' ) ) return;
    			meta = entry[0].querySelector(".post-meta-infos");
        		title = entry[0].querySelector(".av-heading-wrapper");
    			title.parentNode.insertBefore(meta, title.nextSibling);
    		} else {
    			for (var i = 0; i < entry.length; ++i) {
      				meta = entry[i].querySelector(".post-meta-infos");
    				title = entry[i].querySelector(".av-heading-wrapper");
    				title.parentNode.insertBefore(meta, title.nextSibling);
    			}
    		}     
        }
    })();
    </script>
    <?php
    }

    I’ve also made sure the suggested CSS in the quick CSS styling of the child theme was present (it is):

    .big-preview a {
        height: auto;
        width: 100%;
    }

    I have included the login credentials again in the private area for your reference.

    I’ll await your further instructions.

    Thanks
    Lyse

    #1072820

    Hey tremblayly!

    Thank you for creating a new thread.

    We can’t see any issue with those pages and the live pages that you mentioned previously. Where can we see the issue again? Screenshots will help.

    Regards,
    Ismael

    #1072833

    Hi Ismael,

    The issues appear to become apparent only on the live site. But I had to remove the script code from the live site functions.php. As soon as I add the script code, many issues arise, so I’m not sure how we should go about fixing this I all works well o the staging server.

    I do have one more option. I have another staging area that is a duplicate of the production site from a few days ago. I have added the script code to its functions.php file. I also added the latest CSS code to the Enfold quick styling.

    Here are links to the pages:
    https://silviafindstg.wpengine.com/jewellery-corner

    You should have access as administrator with the same temporary credentials, so you can see what’s happening directly.

    Let me know if that will work. I can see that the two pages do no reflect the post meta changes we expect.

    Thanks
    Lyse

    #1072835

    …BTW you can see on the legacy staging server, this page is missing information in a section: http://silviafindings.staging.wpengine.com/custom-designed-molds (hosted on WPengine)

    #1072836

    ….and the customer service page is also missing lots of icons information: http://silviafindings.staging.wpengine.com/customer-service (hosted on WPengine)

    So the script there is causing some issue….

    #1073482

    Hi,

    Alright. We adjusted the code again. It now checks if the current page is a blog or a single post page. It also removes the error in “custom-designed-molds” page while retaining the previous functionality. (see private field)

    Best regards,
    Ismael

    #1073632

    Hi Ismael,

    All looks normal and the blog pages are as I want.

    I have applied the code snippet to my production site and all looks as expected with any loss of functionality.

    There is one last question, on the single post page, I don’t understand why the related post “Your might also like”, the images don’t display (neither on the staging server nor the production server) .
    Here’s the single page links:
    on the staging server: http://silviafindings.staging.wpengine.com/the-2019-maple-ridge-lapidary-club-rock-gem-show-is-on-this-weekend (hosted on WPengine)
    on the production server: https://silviafindings.com/the-2019-maple-ridge-lapidary-club-rock-gem-show-is-on-this-weekend
    Thanks
    Lyse

    #1074614

    Hi,

    Thanks for the update.

    Would you mind opening a new ticket for that inquiry? It’s not related to the original topic, so mixing it up here will be confusing for other users who might be looking for the same answer.

    Best regards,
    Ismael

    #1074616

    Hi Ismael,

    That won’t be necessary because today all of the post images are displaying as expected.
    If it does happen again, I will open a new ticket.

    Thank you for all of your patience and help on this issue.

    Lyse

    #1075239

    Hi,

    Great! We have no idea what caused it in the first place, but we’re glad that it is fixed.

    Have a nice day.

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Move post meta data below post title’ is closed to new replies.