Forums

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

Home Forums CSS using css to create new widgets.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38578
    agentwebsites
    Participant

    I am new to css and HTML but does anyone know how to create custom widgets that I add to my wordpress site http://www.thetop40.com Check it out and let me know what you think.

    #104617
    agentwebsites
    Participant

    Sorry the site is http://www.thetop40.com/

    #104632
    kobulemur
    Participant

    you cannot make a widget out of css. you can only change its appearance.
    In case you might want to make a new widget, you must first register a new widget at function.php and add a another code in the desired area where you want your widget to be located.

    code for registering widget in function.php

    	register_sidebar( array(
    'name' => __( 'Your Widget Name', 'theme' ),
    'id' => 'div-id-for-widget',
    'description' => __( 'Your Widget Name', 'theme' ),
    'before_widget' => '
  • ',
    'after_widget' => '
  • ',
    'before_title' => '

    ',
    'after_title' => '

    ',
    ) );

    here is the code for the desired area







    you can always modify the code to your liking
    btw, nice site. only that there is a missing image in your header section. might be a logo or something.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.