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

H

h2o

@h2o
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Custom Content from PHP, Multiple Categories, Tags available
    H h2o

    ok, works as expected then. i also had a bug in my plugin, custom shortcodes for custom html content works now and integrates in the flow of the website.

    one last question (for now):
    how can i reactivate the tinymce link plugin for the editor when i am using advanced custom fields?

    best and thanks,
    fabian

    General Discussion

  • Custom Content from PHP, Multiple Categories, Tags available
    H h2o

    Mh, that's a bummer. Maybe you should communicate that on your website.
    There is no way you get this info before you purchase it.

    I guess it's not an option, because then i will have more work with the coding of the rest of the site. Your template is nice and i chose it because it works out of the box.

    As you know, if my child theme has it's own functions.php it will not replace the parents function.php, but execute before. So, it will not break anything if one takes care.

    1. remove the radio-options: just make a class Radio_Buttons_for_Taxonomies {} in my childs functions.php, so class_exists fires true and does not continue to register the plugin

    2. if i add content through a shortcode in the laygridder, is not added to the ajax flow on the frontend, but added to the websites html after the ajax-container, bug or feature?
      — LayShortcodes::get_shortcode_contents(); in index.php

    3. add tags: why did you remove it? – i really want to know, because i registered it again with a hook to add_action

    my functions.php looks like this now:
    // initial register radio-buttons class, but empty, to fire class_exists true
    class Radio_Buttons_for_Taxonomies {}

    // re-registers taxonomy after the parents setup due to function priority
    function add_post_type_support() {
    register_taxonomy_for_object_type('post_tag', 'post');
    }
    add_action('init', 'add_post_type_support', 20);

    General Discussion

  • Custom Content from PHP, Multiple Categories, Tags available
    H h2o

    Hi,

    • I use the lay theme as a child theme for a client and want to remove the radio buttons plugin you add in your functions.php. How would I do it with php in the childs function.php? – Why are you doing this? (because of the project arrows?) Whats the downside of removing the radios and enable checkboxes?

    • I want to have custom content generated from php on a particular page, how do I inject the content? Basically i want to loop over a category and display all posts within this category with all the content, not only thumbnails. I wrote a plugin that does the needed and outputs HTML from a shortcode, but when I add a shortcode to a gridder element (+Shortcode) its not in the react-flow, but is appended on every page?

    • Doing the above: is it possible to get the gridder content of a particular page and display it as HTML or JSON that will be parsed?

    • Why are tags disabled? Is there an easy way do enable the tags again in the functions.php of the child theme?

    Let me know if this makes sense.

    Thanks in advance,
    Fabian

    General Discussion
  • Login

  • Don't have an account? Register

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