Title: Inline &#8220;table *&#8221; property blocks custom css
Last modified: August 12, 2020

---

# Inline “table *” property blocks custom css

 *  [Katharsisdrill](https://wordpress.org/support/users/katharsisdrill000/)
 * (@katharsisdrill000)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/)
 * I’ve had some troubles with custom tables in twenty twenty. No matter what I 
   did the inline css overruled my own css in a child theme. and made the border
   grey (I wanted it transparent or the colour of the background).
 * It is the line
 * > pre,fieldset,input,textarea,table,table *,hr { border-color: #d3d3d3; }
 *  where the last “table *” blocks everything.
 * My workaround has been to go to the functions.php and change _twentytwenty\_get\
   _elements\_array()_ by renaming **table \*** to something else, but it’s not 
   really an elegant solution, and it has to be done every time I update twenty 
   twenty.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [stilman davis](https://wordpress.org/support/users/stilman-davis/)
 * (@stilman-davis)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/#post-13241762)
 * If you put your line of code in your child theme’s functions, that should keep
   it safe from updates.
 *  Thread Starter [Katharsisdrill](https://wordpress.org/support/users/katharsisdrill000/)
 * (@katharsisdrill000)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/#post-13241830)
 * Yes, I tried, but I am to dim to do it right.. it crashes the site when I try
   to move the whole (rather large and vital) function giving me a _**fatal error:
   Cannot redeclare twentytwenty\_get\_elements\_array()**_. And I am not sure I
   can write the php that is needed.
 *  [stilman davis](https://wordpress.org/support/users/stilman-davis/)
 * (@stilman-davis)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/#post-13241910)
 * Don’t move the function.php. That has to remain where it is.
 * If you have set up your child theme correctly, there should be a function.php
   in the child directory. Just add your code in that file.
 *  Thread Starter [Katharsisdrill](https://wordpress.org/support/users/katharsisdrill000/)
 * (@katharsisdrill000)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/#post-13242047)
 * Sorry I didn’t express myself clearly. I copied the function from the parent 
   function.php to my child theme function.php, but somehow the whole function can’t
   be redeclared.
 * I’m not a PHP Wizard so I’m a bit unsure.
 *  [stilman davis](https://wordpress.org/support/users/stilman-davis/)
 * (@stilman-davis)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/#post-13242075)
 * You don’t need to copy anything from the parent theme to the child. All you need
   to do is add your function to the empty (presumably) function.php file. The child
   takes on all the functions from the parent and transforms as you add your own
   functions and styles.
 *  Thread Starter [Katharsisdrill](https://wordpress.org/support/users/katharsisdrill000/)
 * (@katharsisdrill000)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/#post-13242354)
 * Yes, that is what I have tried, but after reading a bit ( [https://mhthemes.com/support/knb/overriding-parent-theme-functions-child-theme-tutorial](https://mhthemes.com/support/knb/overriding-parent-theme-functions-child-theme-tutorial))
   it seems that WordPress is also loading the parent theme functions, only after
   it has loaded the child theme functions. As I am changing the variables it runs
   the same function again and tries to redeclare all those “element” arrays, thus
   giving me the error.
 * I wish I could find somewhere less important in the code than the element array
   to stick in my knife, but I haven’t been able to even find where it get the grey
   colour value (#3d3d3d) for the table. Maybe it is in the wordpress code?
 *  [stilman davis](https://wordpress.org/support/users/stilman-davis/)
 * (@stilman-davis)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/#post-13242426)
 * Someone with more experience than I could help. I have only used Child Themes
   in a prosaic and simple manner. I thought the loading was the other way around—
   certainly that is the way with styles.
 * Perhaps giving the function a unique name might do the trick.
 * Another idea might be to use a different page template with all the elements 
   you need in place. Rather than using the original elements, you could use the
   ones you want and the associated styles.
 *  Thread Starter [Katharsisdrill](https://wordpress.org/support/users/katharsisdrill000/)
 * (@katharsisdrill000)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/#post-13248693)
 * Yes, I’d hoped that it was only necessary to do CSS corrections, but _table *_
   blocks any part of the table hierachy no matter where you use a table. When it
   is just _table_ that is assigned a colour you can always us <tr> or <td> and 
   get your result.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Inline “table *” property blocks custom css’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentytwenty/3.0/screenshot.png)
 * Twenty Twenty
 * [Support Threads](https://wordpress.org/support/theme/twentytwenty/)
 * [Active Topics](https://wordpress.org/support/theme/twentytwenty/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentytwenty/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentytwenty/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Katharsisdrill](https://wordpress.org/support/users/katharsisdrill000/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/inline-table-property-blocks-custom-css/#post-13248693)
 * Status: not a support question