Hi,
I have transferred a table purely in html and css from another page. Transferring this table to the page builder would take a lot of time.
So 2 questions:
1. is there a way to transfer such a table relatively easily and quickly to the page builder?
2. if this does not work, is there a css code that I can use for better display on the mobile phone? I’ve already tried a few, but somehow it doesn’t look right.
Thanks in advance.
Kind regards
Nadja
Hey NadjaJacke,
Thank you for the inquiry.
You can place the HTML of the table in a Text or Code Block element and include the css as an inline stylesheet. Alternatively, you can load the css in a separate file and register it using the wp_enqueue_style function.
Example:
function av_theme_enqueue_styles() {
wp_enqueue_style( 'av-table-style', get_template_directory_uri() . '/css/av-table-style.css', array(), '1.0.0', 'all' );
}
add_action( 'wp_enqueue_scripts', 'av_theme_enqueue_styles' );
Best regards,
Ismael