• Resolved nylarosie

    (@nylarosie)


    Hi,

    Love the clean and flexible Hueman theme. I’ve run into a couple of problems.

    1. I want to use Smartslider instead of the default. I would like to use it in exactly the same place and dimensions as the existing slider. How do I do this please?

    2. I don’t want the meta data to show for some categories such as featured posts used in the slider but I want to retain it for other categories.

    Any help would be great.

    Thank you.

    Nyla

Viewing 15 replies - 1 through 15 (of 19 total)
  • Hi Nyla. Welcome to the Hueman forum.

    1.
    – Create a child theme. If you don’t already have one you can install one easily following these instructions:
    https://docs.presscustomizr.com/article/239-using-a-child-theme-with-hueman

    – Copy index.php from the parent theme to your child theme

    – In your child theme index.php file comment out this line:

    <!-- <?php if ( hu_is_checked('featured-posts-enabled') ) { get_template_part('parts/featured'); } ?> -->

    – If you’re using the slider shortcode, add a do_shortcode() function below the line in #3.
    https://css-tricks.com/snippets/wordpress/shortcode-in-a-template/

    – If you using the slider php, add it below the line in #3.

    2. Depending on whether this is for posts on the home page, category archive pages, or single posts, you’ll need to modify one or more theme template files in your child theme:
    content.php
    content-standard.php

    Thread Starter nylarosie

    (@nylarosie)

    Hi again and thank you for replying to my query.

    1. I followed your instructions to replace the slider but it gave me a full width slider below the featured post. What I would like is for the exact same configuration as with the native flex slider but using SmartSlider (i.e. the slider in the placeholder box).

    I have copied the featured.php to my child theme in case changes need to be made there.

    2. What would I have to do to remove e.g. all meta data from the featured posts on the home page but keep date and title for other posts on the home page?

    I’ve copied the content and content-standard to my child theme.

    Thank you to Form bdbrown and anyone who kindly helps out,

    Nyla

    1. Did you comment out the line in index.php that calls the Features Posts slider; i.e., put <!– and –> around it?

    2.

    remove e.g. all meta data from the featured posts on the home page

    If you’re not using the theme Featured Posts slider, which posts are these?

    Thread Starter nylarosie

    (@nylarosie)

    Hi again,

    I pasted exactly your code and deleted the old line.

    Just went through it again and my sidebars headings have kind of disappeared and the slider is there but not in the placeholder at all (which is empty.

    I’d be happy to remove the author and date from everywhere is that is easier than just on the front page.

    https://humanknd.com

    Thanks again, I know it is not easy liaising with a non-tech person.

    Best wishes,

    Nyla

    Thread Starter nylarosie

    (@nylarosie)

    <!-- <?php if ( hu_is_checked('featured-posts-enabled') ) { get_template_part('parts/featured'); } ?> -->
    		<?php echo do_shortcode('[smartslider3 slider=1]');?>
    	<?php if ( have_posts() ) : ?>

    this is the code from index.php

    thanks

    I see a couple of other issues here. Your sidebars have been pushed below the content area which means there’s a conflict somewhere. I also see an unordered list that contains your one test post; not sure where that’s coming from. And trying to remove the meta data is only going to complicate the issue. So, let’s go back a couple of steps and see if we can get the site back to normal, then try adding the slider. Leave everything as it is except take the slider shortcode out of index.php. Also it would helpful to disable your minimize, cache and CDN while we’re troubleshooting. And is there a reason you’re running two different minification plugins?

    Thread Starter nylarosie

    (@nylarosie)

    Hi,

    I removed all child theme files apart from functions.pjp, stylesheet and index.php. I uncommented line: flexslider showed and sidebars went back to correct.

    I recommented line: Conflict reappeared. I also earlier turned off all plugins and there was no improvement. Not many plugins as this is a new site.

    You can see what the result is if you visit the site.

    Also switched off caching and cdn. The configuration used re. caching works well elsewhere. Thanks gain for your perseverance.

    Nyla

    What are you using to display the posts on the home page? There’s something besides the theme generating code that’s changing the page layout.

    Thread Starter nylarosie

    (@nylarosie)

    Nothing,

    I went back to hueman and the conflict went (at least), so I deleted the child theme and I’m creating another using childfy…but says that hueman is broken so reinstalling…

    Thread Starter nylarosie

    (@nylarosie)

    I reinstalled the whole thing. Created a new child theme and changed the index.php and the same thing happened!! I removed all other themes but 2015 and plugins cdn off.

    Bit frustrated bdbrown. Any ideas?

    Nyla

    Can you copy your modified index.php code here https://pastebin.com/ and then post a link to pastebin?

    OK, never mind that. There’s something wrong with commenting out the featured slider call. Try removing that line altogether.

    Thread Starter nylarosie

    (@nylarosie)

    I don’t know how to show you the paste.

    Is this it? https://pastebin.com/a2jJNef3

    Thanks

    Nyla

    Yes, that’s it; thanks. So, as I mentioned, the problem is in commenting out the featured slider line. It’s been an known issue for a loooooong time but I’ve never run across it before. If you’re interested here’s the WP Core Trac ticket: https://core.trac.www.ads-software.com/ticket/8912

    The solution is to either remove that line, or, if you want to keep it for reference, make it into a php comment, like so:

    <?php // if ( hu_is_checked('featured-posts-enabled') ) { get_template_part('parts/featured'); } ?>
    Thread Starter nylarosie

    (@nylarosie)

    Yes, that helped. Just removed it and put in the new slider. The only issue is that it is bigger than the old placeholder. Is there a way to modify it back to that size?

    I think I’ll leave the meta data till tomorrow as exhausted!!

    https://humanknd.com

    Thanks,

    Nyla

    Thread Starter nylarosie

    (@nylarosie)

    This site uses the slider and it is the size of the placeholder:
    https://earthday.dk/

    Thanks again,

    Nyla

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Struggling with a couple of issues’ is closed to new replies.