Si të shtoni një widget në faqen tuaj wordpress!

Nëse je fillestar në ndërtim faqe interneti me në wordpress dhe kërkon që doemos të vendosësh një widget të re në bllokun e faqes tënde atëherë më poshtë po ju spjegoj se si mund ta bëni këtë.

Hapi i parë
Gjejmë file functions.php në theme (pamjen) që përdorni, e ditojmë dhe aty shtojmë këtë kod.

if ( function_exists('register_sidebar') ){
register_sidebar(array(
'name' => 'BllokuQendror',
'before_widget' => '
',
'after_widget' => '

',
'before_title' => '',
'after_title' => '',
));
}

Hapi i dytë
Editojmë sidebar.php dhe shtojmë në div-ën e sidbarit këtë kod.

< ?php
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('BllokuQendror')) { }
?>


Kështu që faqe juaj tashmë ka një widget të re në të cilën mund të vendosni gjithcka që dëshironi nga menaxhimi i wordpress.

Por si veprojmë në rast se kemi instaluar WPML dhe faqe jonë është me më shume se një gjuhë?
Në këtë rast duhet që për cdo gjuhë të thrasim një wirdget tjetër…
Pshm:
< ?php

if (ICL_LANGUAGE_CODE == 'sq') {
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('BllokuQendror')) { }
}

?>
E kështu me radhë për vdo gjuhe shtesë.
Shpresoj që tju kem ndihmuar sadopak për të krijuar në wordpress. :)
Burimi : http://nipastudio.com/sq/3317/NIPA-web-design/si-te-shtoni-nje-widget-ne-faqen-tuaj-wordpress.html
 

Konkursi Letërsisë

  • Aeroporti i Zaventemit

    Votat: 6 54.5%
  • Të harrova, sepse të dua

    Votat: 5 45.5%
  • Vetëm …

    Votat: 4 36.4%
Personalization

Theme Editor

Settings Colors

  • Mobile users cannot use these functions.

    Alternative header

    You can easily choose an alternative header structure for a different look.

    Select View Mode

    Switch between full screen and narrow screen modes.

    Grid View

    Easily review content and get an organized view with grid mode.

    Image Grid Mode

    Display your content in an organized and visually rich way with background images.

    Sidebar Close

    Create a larger workspace by hiding the sidebar.

    Fixed Sidebar

    Ensure constant access and easily manage your content by pinning the sidebar.

    Box view

    You can add a box-style frame to the sides of your theme or remove the existing frame. Valid for resolutions over 1300px.

    Radius Control

    Customize the look however you like by turning the radius effect on or off.

  • Choose your color

    Choose the color that reflects your style and ensure aesthetic harmony.

Back