Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1375924

    I would like to have the blog title under the featured image in the blog. Is this possible via custom css or do I have to create a new child theme in that case?

    #1376016

    Hey Madeleine,
    Thanks for the link to your site, as I understand you would like the title on the single posts after the featured image, the following function will do this for you but we would recommend placing it in your child theme functions.php file so that it won’t be lost the next time you update.
    While I couldn’t login it looks like you don’t have a child theme installed if you don’t want to install one you could use the plugin WPCode – Insert Headers, Footers, and Code Snippets, this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snipets.
    You would add this code as a PHP snippet.

    function single_post_title_after_featured_image() { ?>
      <script>
    (function($){
      $( '#top .post-entry' ).each(function() {
      $( this ).find( '.entry-content-header' ).insertAfter( $(this).find('.big-preview.single-big'));
      $( this ).find('.av-vertical-delimiter').insertAfter( $(this).find('.big-preview.single-big'));
      });
    })(jQuery);
    </script>
      <?php
    }
    add_action('wp_footer', 'single_post_title_after_featured_image');

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    Please see the screenshot in the Private Content area of the expected results.

    Best regards,
    Mike

    #1376110

    I have created a child theme now. Thank you so much for your help. The code worked perfectly! :)

    #1376141

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Blog title after featured image’ is closed to new replies.