Tag: code
-
Framer Code Components and Code Override
—
in FramerCreating components in Framer is a breeze. It’s also extremely powerful. However, if you really need to go beyond the pixels and make something custom, you’ll need to venture into the space of “Code Components & Overrides”. They are amazing as they completely remove the ceiling of what you can achieve in Framer by adding…
-
register_taxonomy
—
in WordpressIn order to have a taxonomy appear in the URL hierarchy of the relevant CPT, you can rewrite the taxonomy slug to contain the CPT’s slug. But you must register the CPT after registering the taxonomy, otherwise the rewrite will not work, i.e. in this case, book CPT must be registered after genre taxonomy.
-
Prevent stylesheet from being cached
—
in WordpressTo prevent a stylesheet from caching in WordPress using PHP, you can add a query string to the stylesheet URL in your theme’s functions.php file. For example, use wp_enqueue_style( ‘your-style-handle’, get_stylesheet_uri(), array(), time() ); to append the current timestamp, ensuring the browser fetches the latest version on each page load
-
Sara Soueidan – Blog
—
in Web design80 articles on Web UI engineering covering project case studies, thought process, front-end strategy, techniques and best practices, focused on HTML, CSS, SVG, accessiblity, and everything in between.
-
Display the post date or “Today” in an archive
—
in WordpressDisplay the post date. Only output the date if the current post’s date is different from the previous one output (like the_date). Use the_date for yesterday or older.Use “Today” for today, but only for the first post of the day (same behaviour as the_date).
-
Rules for taxonomy names and post type names
—
in WordpressCustom taxonomy names (and custom post type names) need to comply to a very specific set of rules, otherwise you will encounter pitfalls that there are no work around for. Here is a guide line when choosing names for custom taxonomies (and custom post types)