Getting this slideshow to show on my home page above the posts

Community Forums Forums General Discussion Getting this slideshow to show on my home page above the posts

This topic is: resolved

This topic contains 6 replies, has 2 voices, and was last updated by  mkpdesigns 1 year, 5 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #47797

    mkpdesigns
    Participant
    Post count: 8

    I have a slideshow set up that gives me a shortcode to input, and I want it on the homepage, which is set to be the latest posts. I have looked through the forums for answers but it seems like it might be different since it is the front page and no page ID. Any help is greatly appreciated!

    Here is the page that I am trying to get it done. Right now it is set as a sticky post and I am having to hide the author info for it to look good, but I want to reveal and keep that info. (under heavy construction):
    http://mkpdesigns.net/demo/carolinansa/

    Thanks!!!
    Mike

    http://mkpdesigns.net/demo/carolinansa/
    #47843

    braddalton
    Participant
    Post count: 10667

    You can copy this code from the view raw link and paste it at the end of your child themes functions.php file using a text editor.

    The conditional tag in the code can be easily changed from [php]is_home to is_front_page()[/php]

    This PHP code will create a new widget where you can paste the slider short code into a text widget.

    You may also need to add support for short codes in widgets by adding this code also.
    [php]
    add_filter(‘widget_text’, ‘do_shortcode’);
    [/php]


    #47848

    mkpdesigns
    Participant
    Post count: 8

    Exactly what I was trying to figure out, thank you so much for the help! Worked perfect of course.

    #47854

    braddalton
    Participant
    Post count: 10667
    #47967

    mkpdesigns
    Participant
    Post count: 8

    Really appreciate it, but would you mind helping with something else real quick? How can I change that to add a widget section at the bottom, after the posts? Sorry I am new at PHP, I am working on learning. Thank you so much!!!

    #47978

    braddalton
    Participant
    Post count: 10667

    Use this code however you will need to change the i.d for registering the widget so its different to custom-widget which is what the other widget uses. Needs to be unique for each widget.

    You can also change the hook which determines the position it outputs on single posts and the conditional tag.

    Examples:
    [php]

    // hooks
    genesis_after_post_content

    //popular conditional tags
    is_single

    is_home

    [/php]

    A suggestion: It is a good idea to install WordPress locally if you plan on custom coding. This way to can learn the basics and make small modifications to the code without any risk. Its something i do dozens of time everyday and one of the best ways to learn coding.


    #47981

    mkpdesigns
    Participant
    Post count: 8

    Thank you so much! You have taught me a lot and I have a much better understanding of it all now. It is very appreciated!!!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.