• Hi!

    I would like to know if the theme allow to get the featured image and ”assigned” categories of posts in the sidebar as a widget would do. Thank you!!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Nik Smalin

    (@nik-smalin)

    Hi
    I don’t understand what you mean
    do you need to output catogories list in recent posts list?

    Thread Starter therabbitholewiki

    (@therabbitholewiki)

    Hi thanks for your reply,

    No I am not talking about the recent posts, nothing to do with them

    I need to output the featured image and the ”assigned categories” list (of any and all posts), in ITS sidebar; In the post’s sidebar INSTEAD of in the content

    I’m building an encyclopedia, I have 350 different categories overall. As an example, one post/article can be found in 1 or as many as 50 different related categories. These specific categories are so-called ”assigned” to the post before publishing by checking them one by one, so they can be found in the respective category pages with other related posts

    As you can see in the link provided previously, a random post/article of my website, this ”assigned categories ” list I am speaking of is ouputed as a WHITE TRANSPARENT BOX in front of the featured image, visible right as you land on the page

    I need the featured image and this ”assigned categories” list to be outputed respectivelly in the first and second position of the sidebar as if they were widgets, (Such as a”Featured image in sidebar widget” and ”assigned categories in sidebar widget” for example)

    I did try a widget called ”Featured image in sidebar” that worked but then fatally crashed my website

    What code should I add to the theme to allow me to make this rather basic operation and modification to the display of all my posts at once?

    The result would be the featured image and ”assigned categories” list in the right hand sidebar rather than in the content of the article, and the articles content (in my case embedded pdf viewers) first to appears in the content

    Hope I made this clearer, thank you for your time and patience !!

    Thread Starter therabbitholewiki

    (@therabbitholewiki)

    Hi Nik, thank again for bringing your attention my issue, I have found the solution I needed,

    Here is the code in case you want to implement this customization option in future updates:

    Open sidebar.php file and insert the code after this line: <div class=”sidebar__widget__container”>
    Copy and paste this code:
    <?php if( is_singular(‘post’) ) : ?>
    <div class=”widget”>
    <p class=”widget-title”>Filed under:</p>
    <p><?php the_category( ‘, ‘ ); ?></p>
    </div>
    <div class=”widget”>
    <p class=”widget-title”>Featured Image:</p>
    <?php if ( has_post_thumbnail() ): ?>
    <?php the_post_thumbnail(‘large’) ?>
    <?php endif; ?>
    </div>
    <?php endif; ?>

    Best regards

    Theme Author Nik Smalin

    (@nik-smalin)

    Hello!

    unfortunately, it’s not allowed to add some hard coded widgets in sidebar area, but if you need one of those, you can do it in your child theme and this changes will not disappear after next update, just copy sidebar.php into your child theme folder and add your code, if you will need help with it let me know

    Best Regards!

    Thread Starter therabbitholewiki

    (@therabbitholewiki)

    Hi!
    Thanks for your reply and offering your help, rang an alarm and probably spared me a catastrophy:p I was not aware of the necessity of a child theme in order to upgrade safely.
    Which I did as well as transfering the files from the parent to the child theme and everything seems to be in order, main.css cannot be retrieved from the original, but as you said its probably meant to be that way, modified in the custom css feature to avoid this dependency in all events.

    Thanks again for the support!

    Best of luck with your work

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Featured image and assigned categories of posts in sidebar’ is closed to new replies.