• ronthewebdev

    (@ronthewebdev)


    How do I go about doing this using PHP?

    I want to put it in the functions.php file.

    I know how to create a custom div and class, but I am not aware of a way to put it right after another one.

    Thanks

    • This topic was modified 3 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 6 replies - 1 through 6 (of 6 total)
  • Vijay Hardaha

    (@vijayhardaha)

    Please provide more details:

    – Which div on the homepage?
    – Which website you are working on?
    – Which theme you’re using?

    Thread Starter ronthewebdev

    (@ronthewebdev)

    I will setup a demo site and respond back with a link.

    Thanks

    Thread Starter ronthewebdev

    (@ronthewebdev)

    The demo site is located here:

    https://ronr21.sg-host.com/

    You will see the hero on the frontpage.

    I want to place another image directly below it by creating a new div and class, but this is where the problem lies.

    Thanks

    Vijay Hardaha

    (@vijayhardaha)

    The hero section is added by you with custom code or using theme or plugin settings to add that?

    Thread Starter ronthewebdev

    (@ronthewebdev)

    Yes, the hero is added by using GeneratePress elements.

    Vijay Hardaha

    (@vijayhardaha)

    If it’s dynamic then you can dynamically add another content after that, right?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to add a custom div with class right after another div on the homepage?’ is closed to new replies.