Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1000099

    Hi.

    I am trying to figure out how to move the “You might also like” section up a bit on the blog pages.

    image

    I was thinking either above “Share this entry” OR above the author. Does anyone know how?

    #1000103

    Hey robsdesigns,
    I took a look at your page, and found that moving the related_posts box above the author-bio doesn’t work very well, but moving it above the share-box does. Try adding this code to the end of your functions.php file in Appearance > Editor:

    
    function move_related_posts(){
      ?>
      <script>
      jQuery(window).load(function(){
      jQuery( '.template-single-blog' ).each(function() {
      jQuery( this ).find( '.related_posts' ).insertBefore( jQuery(this).find('.av-share-box') );
      });
      });
      </script>
      <?php
      }
      add_action('wp_footer', 'move_related_posts');

    Then add this code in the General Styling > Quick CSS field:

    
    #top.single-post .related_posts {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
    }

    See the Private Content area for a screenshot of the expected results.

    Best regards,
    Mike

    #1000272

    Hey Mike, that looks good but when I add the code in the functions.php file and click update… the site never truly saves and just says loading. Also when I try to access my site in another window the site does not load. Once I go back to the functions file and click the back arrow (so it doesnt save) my site is accessible again.

    Any thoughts?

    #1000310

    Hi,
    This sounds like either a curly quote error, please ensure the quotes or commas are straight and not curly.
    Or your functions.php is not saving, please try adding the function via ftp.
    If this doesn’t help, please include a admin login and ftp access in the private content area so we can take a closer look.

    Best regards,
    Mike

    #1000360

    Hi Mike, please see the private info below.

    • This reply was modified 6 years, 3 months ago by robsdesigns.
    #1000555

    Hi,
    I see that you are getting the error message that the functions.php will need to be edited via ftp
    2018-08-22_192538
    I also see that you are using version 3.5.4, but in my browser test of the css & script the function preforms as the screenshot shows, but I didn’t want to try installing a plugin to add the script to the header or footer just in case the site has a major error as you described above.
    I recommend waiting until you can send us the ftp login, and then we will try to add this to your functions.php.
    We will leave this thread open until we hear back from you.

    Best regards,
    Mike

    #1000565

    Hi Mike.

    If you get a chance you can find the FTP info below.

    Thank you!

    • This reply was modified 6 years, 3 months ago by robsdesigns.
    #1000705

    Hi,
    Thank you for the ftp access, I added the function and the css, and tested a few posts which all seemed to work good.
    Please review your site and let us know if you find any issues. If you find none and are satisfied, let us know that we can close this thread.

    Best regards,
    Mike

    #1000741

    Mike, thank you so much!

    #1000753

    Mike, sorry one last thing. I did not want to open another topic as it kind of goes along with it.

    Is there a way on the sidebar blog pages to have the “You might also like” be displayed like the “Same category posts” do?

    #1000812

    Hi robsdesigns,

    Here is a thread for you to consider
    https://kriesi.at/support/topic/change-the-text-of-you-might-also-like/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1000832

    Hi. I am not looking to change the text.. I am looking to actually have “You might also like” display in the sidebar like the “same category posts” does. I would of course remove same category posts if “You might also like” can display there.

    #1000852

    Hi robsdesigns,

    Well, you can add a text widget to the sidebar with whatever text you like. It can be done via Appearance > Widgets.

    Best regards,
    Victoria

    #1000870

    Would you happen to know the code to add to the text widget to make them appear AND to make them look like how the same category posts does?

    Sorry for all the questions. I appreciate your help.

    #1001144

    Hi robsdesigns,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1002221

    Hi,

    Please find info in private section.

    Thank you!

    #1002334

    Hi robsdesigns,

    Best regards,
    Victoria

    #1002362

    Maybe I need to clarify what I was looking for a little better.

    Currently I have the “same category posts” displaying in my sidebar:
    Current

    I also have”You might also like” at the bottom of the page:
    You Might Also Like

    What I want: “You might also Like to appear (and LOOK like) where the “Same Category Posts” are:
    What I want

    I know I can put a “custom widget” in the sidebar. But I was wondering if someone at Kriesi can give me the code to enter in the area to make that happen.

    #1003026

    Hi,

    This would require some time intensive code changes and customization which is beyond the scope of our support forum. I’d recommend to hire a developer/freelancer for this task.

    Best regards,
    Dude

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