The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to add custom '' elements in wordpress

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #191843


    I was wondering how do we actually show


    div> elements on certain posts in wordpress. for example, i want 2 divs added for home post, 3 divs added to About, etc.

    At the moment i have the following code:

    if ( is_front_page() ) {
    // stuff intended only for the front page goes here

    How do i target different posts in my custom theme to add different number of divs added to it and also where do I place the code? in page.php, functions.php or any other file?

    Any help would be very much appreciated.



Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.