• Resolved vlasmar

    (@vlasmar)


    Hello

    I am new at WordPress. I want to put slider starting at the top of the header. Where do I have to put the code?

    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator bcworkz

    (@bcworkz)

    The answer is theme dependent, but for a typical theme it’d be in header.php of your current theme.

    Note that it’s not a good idea to edit theme files because your changes will get overwritten when the theme is updated. To avoid this, create a child theme and copy the parent’s header.php file over to the child and edit that version.

    Thread Starter vlasmar

    (@vlasmar)

    Thanks for the response. My theme is https://www.templatemonster.com/demo/52466.html

    As you can see the picture is under the header menu. I want to delete this and put a slider instead, starting from the top of the page. Also, I want the logo and the header menu to be on the slider too.

    check under appearance>customize to make sure you dont already have the ability to activate a slider, if not then just a slider plugin

    Moderator bcworkz

    (@bcworkz)

    We’re very limited with how we can help people using commercial themes because we cannot access the source code. If your theme is based on the Cherry Framework, there’s probably a shortcode you can use to display a slider. Check the framework’s documentation.

    To use shortcodes outside of the normal content area with PHP, do something like this: do_shortcode('[my-slider]'); Be aware that any alterations to your theme template will be overwritten when the theme is updated. Since framework themes are installed as children, you don’t have the ability to make your own child theme to safely keep custom template parts. The best you can do is keep copies of your custom work somewhere safe.

    Thread Starter vlasmar

    (@vlasmar)

    hello thank you for your answers.
    I managed to do that by editing css. I’ve changed the opacity of the header and make the body starting from the top of the page.

    But I noticed an another problem. In different resolutions the slider doesn’t change width.

    Moderator bcworkz

    (@bcworkz)

    Responsive scaling of images is typically achieved with CSS as well. The image may need to be in a bounding container. The image CSS width is set to 100% and the height to auto. When the container scales responsively, the image scales along with it.

    Thread Starter vlasmar

    (@vlasmar)

    Thank you very much for your help!!

    please mark thread resolved

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘slider at the top of homepage’ is closed to new replies.