Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Custom post type breaks html #1157990

    Hi,
    I am using the advanced layout builder. If you look on the homepage, you’ll find a codeblock with a shortcode.
    When you look at the website, you’ll see that the transparent menu is on top of a white section, uppercase titles aren’t uppercase, on mobile, the site isn’t responsive…
    (I just made 3 events just for testing and I want to add some more fields to the post type later on.)

    Best regards,
    Dirk

    in reply to: Custom post type breaks html #1156912

    Hi,

    The custom post type is called event. and I added it with this code:

    function custom_post_types() {
    register_post_type(‘event’, array(
    ‘public’ => true,
    ‘labels’ => array(
    ‘name’ => ‘Events’,
    ‘add_new_item’ => ‘Nieuw event toevoegen’,
    ‘new_item’ => ‘Nieuw event’,
    ‘edit_item’ => ‘Event bewerken’,
    ‘all_items’ => ‘Alle Events’,
    ‘singular_name’ => ‘Event’
    ),
    ‘menu_icon’ => ‘dashicons-calendar-alt’
    ));
    }
    add_action(‘init’, ‘custom_post_types’);

    I added the code you suggested:

    function avf_alb_supported_post_types_mod( array $supported_post_types )
    {
    $supported_post_types[] = ‘event’;
    return $supported_post_types;
    }
    add_filter(‘avf_alb_supported_post_types’, ‘avf_alb_supported_post_types_mod’, 10, 1);

    But the result is still the same.

Viewing 2 posts - 1 through 2 (of 2 total)