Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

D

daslicht

@daslicht
About
Posts
18
Topics
5
Shares
0
Groups
0
Followers
0
Following
1

Posts

Recent Best Controversial

  • Custom Queries
    D daslicht
    May 30, 2016, 9:39 AM

    Thank you !

    When I try to add RE$ST fields I get:

    Fatal error: Call to undefined function register_rest_field()
    

    Do I need to include something ?
    Do I need to install the WP-api plugin ?

    General Discussion

  • Main Menu Dropdown?
    D daslicht
    May 28, 2016, 11:23 AM

    @arminunruh said:

    "nav.primary a",

    Thanks I tried , same result , the navigation will still fire

    General Discussion

  • Custom Queries
    D daslicht
    May 25, 2016, 10:49 AM

    Hi,
    how to I get the category of a post ? please?
    ~Marc

    General Discussion

  • Carousel dimensions
    D daslicht
    May 17, 2016, 9:50 AM

    Ok check you mail :)

    Addons

  • Carousel dimensions
    D daslicht
    May 17, 2016, 9:00 AM

    @arminunruh May I contact you in private, I am not sure If I am allowed to expose the Design I am implementing public before release, please? (slack?gitter?skype?telegram email ?)

    Addons

  • How to make the Carousel slides linear
    D daslicht
    May 16, 2016, 3:40 PM

    see: https://github.com/metafizzy/flickity/issues/377#event-661517929

    Armin,
    do you know any other Carousel which has this feature.
    Probably it might be a nice idea to add an alternative to your plugin which allows such kind of motion.

    Addons

  • Carousel dimensions
    D daslicht
    May 14, 2016, 12:05 PM

    Hi,

    How to set the width of the carousel to the full width of the browser and the height manually, please ?
    I have noticed that you set the width of "lay-carousel-wrap" programmatically ?
    ~ Marc

    Addons

  • How to make the Carousel slides linear
    D daslicht
    May 14, 2016, 10:30 AM

    Hi Armin,
    i quickly hacked flickity (see readme) to show of how it should behave :

    https://plnkr.co/edit/tkiRH8jpRNH7qFv8FM37?p=preview

    Addons

  • How to make the Carousel slides linear
    D daslicht
    May 13, 2016, 11:41 AM

    Hi,
    How to make the Carousel slides infinite linear like a marquee, please?
    ~Marc

    Addons

  • Main Menu Dropdown?
    D daslicht
    May 10, 2016, 2:39 PM

    HI Armin,

    is there a way to disable the default action for specified Menu Items ?

    I tried something like this, but the defaultAction is always fired:

    $(document).on('click',  ".primary",  function(e) { //just trying to hijack all events :)
                e.preventDefault()
                console.log('click', e.target);
                return false;
    });
    
    General Discussion

  • Main Menu Dropdown?
    D daslicht
    May 10, 2016, 12:09 PM

    Hi,
    thanks for the extensive reply !

    Styling myself and the loose of the customizer is ok for me.

    @arminunruh said:

    Also anchor points of menu points in lay theme normally have these attributes: data-id, data-title, data-type. I'm using that to make the menu navigate the site using ajax.

    More Interesting would be how to integrate the custom navigation into you workflow (you ajax event system).
    Would I need to render the Navigation Client side or server side ?

    I tryed to add a menu in the childs theme function.php like this :

    if( !$menu_exists){
        $menu_id = wp_create_nav_menu($menu_name);
    
    	// Set up default menu items
        wp_update_nav_menu_item($menu_id, 0, array(
            'menu-item-title' =>  __('Home'),
            'menu-item-classes' => 'home',
            'menu-item-url' => home_url( '/' ), 
            'menu-item-status' => 'publish'));
    
        wp_update_nav_menu_item($menu_id, 0, array(
            'menu-item-title' =>  __('Custom Page'),
            'menu-item-url' => home_url( '/custom/' ), 
            'menu-item-status' => 'publish'));
    
    }
    

    Interesting is here that I get the data attributes for home, but not for about:

    
    <li id="menu-item-52" class="snip">
          <a href="http://local.site/"  data-type="page" data-id="18"><span>Home</span></a>
    </li>
    <li id="menu-item-53" class="snip">
          <a target="_blank" href="http://local.site/about/"data-type="custom"><span>About</span></a>
    </li>
    
    

    Is there another to create the menu directly in the layout ?

    General Discussion

  • Custom Queries
    D daslicht
    May 9, 2016, 9:39 AM

    Is there a way to get also the author when using something like this please?

    "http://yourwebsite.com/wp-json/wp/v2/posts?filter[category_name]=home"

    Or do I need a second query for this ?

    General Discussion

  • Custom Queries
    D daslicht
    May 9, 2016, 8:47 AM

    @arminunruh said:

    http://v2.wp-api.org/

    Thank you for the info !

    General Discussion

  • Main Menu Dropdown?
    D daslicht
    May 9, 2016, 8:44 AM

    Thank you for the reply,

    however I need to display the Names of the Items of a Category, and it's best automatically generated.

    Let's say I have the following Projects

    • This is the first Project Name ( category A )

    • And I am the second ( category A )
      ...

    • Project 3 ( category B )

    • Project 4 ( category B )
      ...

    Now I need the following Menu Link :

    Category A

    If you hover over the Category A Menu Item a dropdown should be shown with all Project names of category A:

    Category A
    -----This is the first Project Name (category A)
    -----And I am the second (category A)

    General Discussion

  • Custom Queries
    D daslicht
    May 8, 2016, 11:49 AM

    Selecting by id works :

    $args = array(
    	    'post_type' => 'post',
    	    'category' => '1', 
        );
    
    General Discussion

  • Custom Queries
    D daslicht
    May 8, 2016, 11:42 AM

    Hi,
    I have created several projects with different categories.

    Lets say I like to get all projects with the category work.

    I have tried something like this:

        $posts = new WP_Query(array( 'category_name' => 'work' ));
    
    
    

    or:

        $args = array(
                'category_name' => 'work', 
            );
        $posts = get_posts($args) ;
    

    However in the result i get anytime all posts?

    What am I missing, please?

    ~Marc

    General Discussion

  • Main Menu Dropdown?
    D daslicht
    May 8, 2016, 10:59 AM

    Hi,
    what is the best way to add a Dropdown to the Main menu which displays all items titles of a Category, please?

    I better ask before hacking your code :)

    ~
    Marc

    General Discussion

I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com

Before you post:
  1. When using a WordPress Cache plugin, disable it or clear your cache.
  2. Update Lay Theme and all Lay Theme Addons
  3. Disable all Plugins
  4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

This often solves issues you might run into

When you post:
  1. Post a link to where the problem is
  2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
  3. If the problem is difficult to explain, post screenshots / link to a video to explain it
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
laytheme.com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search