{"id":383,"date":"2025-01-05T04:10:26","date_gmt":"2025-01-05T04:10:26","guid":{"rendered":"https:\/\/tableberg.com\/?p=383"},"modified":"2025-01-05T05:49:19","modified_gmt":"2025-01-05T05:49:19","slug":"comment-ajouter-une-colonne-a-un-tableau-dans-wordpress","status":"publish","type":"post","link":"https:\/\/tableberg.com\/fr\/how-to-add-a-column-to-a-table-in-wordpress\/","title":{"rendered":"Comment ajouter une colonne \u00e0 un tableau dans WordPress"},"content":{"rendered":"<p>Une colonne est une section verticale dans un tableau, contenant des donn\u00e9es sp\u00e9cifiques pour chaque ligne. Elle sert de conteneur pour les informations connexes. Normalement, nous sp\u00e9cifions le nombre de colonnes d'un tableau lors de sa cr\u00e9ation. <\/p>\n\n\n\n<p>Mais dans certains cas, nous pouvons avoir besoin d'ajouter des colonnes \u00e0 un tableau existant \u00e0 tout moment. Cet article vous montrera comment ajouter une colonne \u00e0 un tableau dans WordPress.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>M\u00e9thode 1 : <a href=\"#Adding-a-Column-to-the-default-Table-Block\">Ajout d'une colonne au bloc de tableau par d\u00e9faut<\/a><\/li>\n\n\n\n<li>M\u00e9thode 2 : <a href=\"#Adding-a-Column-to-the-Tableberg-Block\">Ajout d'une colonne au bloc Tableberg<\/a><\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group has-border-color has-global-padding is-layout-constrained wp-container-core-group-is-layout-8db5ca72 wp-block-group-is-layout-constrained\" style=\"border-color:#671feb;border-style:solid;border-width:1px;border-radius:4px;padding-top:var(--wp--preset--spacing--medium);padding-right:var(--wp--preset--spacing--small);padding-bottom:var(--wp--preset--spacing--medium);padding-left:var(--wp--preset--spacing--small)\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-505d3e6d wp-block-group-is-layout-flex\" style=\"padding-top:var(--wp--preset--spacing--small);padding-bottom:var(--wp--preset--spacing--small)\">\n<p style=\"font-size:clamp(18.959px, 1.185rem + ((1vw - 3.2px) * 1.175), 30px);\"><strong>Cr\u00e9er de belles tables <\/strong><br><strong>Avec l'\u00e9diteur de blocs<\/strong><\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-f2baa792 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background wp-element-button\" href=\"https:\/\/wordpress.org\/plugins\/tableberg\/\" style=\"background-color:#671feb\" target=\"_blank\" rel=\"noreferrer noopener\">Essai gratuit<\/a><\/div>\n\n\n\n<div class=\"wp-block-button is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/tableberg.com\/fr\/la-tarification\/\" target=\"_blank\" rel=\"noreferrer noopener\">Obtenir un Pro<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"540\" height=\"540\" src=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/05\/Tableberg.png\" alt=\"\" class=\"wp-image-1545\" srcset=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/05\/Tableberg.png 540w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/05\/Tableberg-300x300.png 300w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/05\/Tableberg-150x150.png 150w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/figure>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Adding-a-Column-to-the-default-Table-Block\">M\u00e9thode 1 : Ajout d'une colonne au bloc de tableau par d\u00e9faut<\/h2>\n\n\n\n<p>Pour ajouter une nouvelle colonne \u00e0 un <a href=\"https:\/\/tableberg.com\/fr\/comment-creer-un-tableau-dans-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">table existante<\/a>Cliquez sur la colonne avant ou apr\u00e8s laquelle vous souhaitez ajouter la nouvelle colonne. Voir le tableau ci-dessous. Nous voulons ajouter une nouvelle colonne apr\u00e8s la troisi\u00e8me colonne.<\/p>\n\n\n\n<p>Nous avons plac\u00e9 notre curseur sur la troisi\u00e8me colonne. Nous avons appuy\u00e9 sur la touche <strong>Ic\u00f4ne de modification du tableau<\/strong> (1) dans la barre d'outils. S\u00e9lectionnez ensuite l'option <strong>Ins\u00e9rer une colonne avant<\/strong> (2) ou <strong>Ins\u00e9rer une colonne apr\u00e8s<\/strong> (3) option.<\/p>\n\n\n\n<p>La nouvelle colonne sera ajout\u00e9e au tableau selon votre choix.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"653\" src=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-a-new-column-to-the-default-WordPress-table.png\" alt=\"Ajouter une nouvelle colonne \u00e0 la table par d\u00e9faut de WordPress\" class=\"wp-image-384\" style=\"border-width:1px;border-radius:3px\" srcset=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-a-new-column-to-the-default-WordPress-table.png 1280w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-a-new-column-to-the-default-WordPress-table-300x153.png 300w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-a-new-column-to-the-default-WordPress-table-1024x522.png 1024w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-a-new-column-to-the-default-WordPress-table-768x392.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Vous pouvez voir qu'une nouvelle colonne a \u00e9t\u00e9 ajout\u00e9e au tableau. Ajoutez maintenant du contenu \u00e0 ses lignes.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"653\" src=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/New-column-added-to-the-default-WordPress-table.png\" alt=\"Nouvelle colonne ajout\u00e9e \u00e0 la table par d\u00e9faut de WordPress\" class=\"wp-image-385\" style=\"border-width:1px;border-radius:3px\" srcset=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/New-column-added-to-the-default-WordPress-table.png 1280w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/New-column-added-to-the-default-WordPress-table-300x153.png 300w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/New-column-added-to-the-default-WordPress-table-1024x522.png 1024w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/New-column-added-to-the-default-WordPress-table-768x392.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-separator-thin\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Adding-a-Column-to-the-Tableberg-Block\">M\u00e9thode 2 : Ajout d'une colonne au bloc Tableberg<\/h2>\n\n\n\n<p>Les <a href=\"https:\/\/wordpress.org\/plugins\/tableberg\/\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/tableberg\/\" target=\"_blank\" rel=\"noreferrer noopener\">Tableberg<\/a> vous permet \u00e9galement d'ajouter de nouvelles colonnes \u00e0 votre tableau existant. Le processus est tout \u00e0 fait similaire \u00e0 la m\u00e9thode ci-dessus. <\/p>\n\n\n\n<p>Cliquez sur n'importe quelle colonne. Appuyez sur la touche <strong>Modifier le tableau<\/strong> (1) dans la barre d'outils. S\u00e9lectionnez ensuite l'ic\u00f4ne <strong>Ins\u00e9rer une colonne avant<\/strong> (2) ou <strong>Ins\u00e9rer une colonne apr\u00e8s<\/strong> (3) dans la liste.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"653\" src=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-column-to-a-table-created-with-TableBerg.png\" alt=\"Ajouter une colonne \u00e0 un tableau cr\u00e9\u00e9 avec TableBerg\" class=\"wp-image-386\" style=\"border-width:1px;border-radius:3px\" srcset=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-column-to-a-table-created-with-TableBerg.png 1280w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-column-to-a-table-created-with-TableBerg-300x153.png 300w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-column-to-a-table-created-with-TableBerg-1024x522.png 1024w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Add-column-to-a-table-created-with-TableBerg-768x392.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Vous pouvez voir qu'une nouvelle colonne a \u00e9t\u00e9 cr\u00e9\u00e9e entre deux autres colonnes.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"653\" src=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Column-added-to-the-TableBerg-table.png\" alt=\"Colonne ajout\u00e9e au tableau TableBerg\" class=\"wp-image-387\" srcset=\"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Column-added-to-the-TableBerg-table.png 1280w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Column-added-to-the-TableBerg-table-300x153.png 300w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Column-added-to-the-TableBerg-table-1024x522.png 1024w, https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/Column-added-to-the-TableBerg-table-768x392.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-separator-thin\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p>L'ajout d'une nouvelle colonne peut affecter l'espace et la disposition des autres colonnes existantes. Vous devrez peut-\u00eatre optimiser leur hauteur et leur largeur. Il convient donc de planifier \u00e0 l'avance l'ajout d'une nouvelle colonne afin de ne pas perturber la pr\u00e9sentation de votre contenu.<\/p>\n\n\n\n<p>Lire aussi : <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/tableberg.com\/fr\/comment-supprimer-une-colonne-dun-tableau-dans-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">Comment supprimer une colonne d'un tableau<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tableberg.com\/fr\/comment-modifier-la-largeur-des-colonnes-dun-tableau-dans-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">Comment modifier la largeur des colonnes d'un tableau dans WordPress<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tableberg.com\/fr\/documents\/comment-modifier-la-couleur-darriere-plan-dune-colonne-individuelle\/\" target=\"_blank\" rel=\"noreferrer noopener\">Comment modifier la couleur d'arri\u00e8re-plan d'une colonne de tableau ?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tableberg.com\/fr\/documents\/comment-modifier-la-bordure-dune-colonne-individuelle-avec-une-couleur-et-un-rayon\/\" target=\"_blank\" rel=\"noreferrer noopener\">Comment modifier la bordure (couleur et rayon) d'une colonne de tableau ?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tableberg.com\/fr\/documents\/comment-ajouter-de-lespace-entre-les-colonnes\/\" target=\"_blank\" rel=\"noreferrer noopener\">Comment ajouter de l'espace entre les colonnes d'un tableau ?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tableberg.com\/fr\/documents\/comment-deplacer-une-ligne-colonne\/\" target=\"_blank\" rel=\"noreferrer noopener\">Comment d\u00e9placer une ligne\/colonne<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tableberg.com\/fr\/documents\/comment-dupliquer-une-ligne-colonne\/\" target=\"_blank\" rel=\"noreferrer noopener\">Comment dupliquer une ligne\/colonne ?<\/a> <\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>A column is a verticle section in a table, holding specific data for each row. It serves as a container for related information. Normally we specify the number of columns in a table while creating the table. But in some cases, we may often need to add columns to an existing table at any later [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6457,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[7],"tags":[8,10,9],"class_list":["post-383","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","tag-create-a-table","tag-customize-table","tag-tableberg"],"featured_image_src":"https:\/\/tableberg.com\/wp-content\/uploads\/2024\/01\/How-to-Add-a-Header-to-a-Table-in-WordPress.png","author_info":{"display_name":"Istiak Rayhan","author_link":"https:\/\/tableberg.com\/fr\/author\/wpx_irayhan\/"},"_links":{"self":[{"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":5,"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":6586,"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/posts\/383\/revisions\/6586"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/media\/6457"}],"wp:attachment":[{"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tableberg.com\/fr\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}