Title: Marko Jakic's Replies | WordPress.org

---

# Marko Jakic

  [  ](https://wordpress.org/support/users/markzero/)

 *   [Profile](https://wordpress.org/support/users/markzero/)
 *   [Topics Started](https://wordpress.org/support/users/markzero/topics/)
 *   [Replies Created](https://wordpress.org/support/users/markzero/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/markzero/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/markzero/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/markzero/engagements/)
 *   [Favorites](https://wordpress.org/support/users/markzero/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 50 total)

1 [2](https://wordpress.org/support/users/markzero/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/markzero/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/markzero/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/markzero/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Sticky Header by DevCanyon] Include search box does not appear](https://wordpress.org/support/topic/include-search-box-does-not-appear/)
 *  Plugin Author [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/include-search-box-does-not-appear/#post-8561014)
 * Hi what is your website url?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [WP 4.4: remove json-api and X-Pingback from HTTP Headers](https://wordpress.org/support/topic/wp-44-remove-json-api-and-x-pingback-from-http-headers/)
 *  [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wp-44-remove-json-api-and-x-pingback-from-http-headers/page/2/#post-6833510)
 * To remove X-Pingback starting from WordPress version 4.4 you could do this:
 *     ```
       add_action('wp', function() {
           header_remove('X-Pingback');
       }, 1000);
       ```
   
 * It’s hardcoded in wp-includes/class-wp.php in handle_404 function, so you’d need
   to hook as late as possible to remove this header.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Sticky Header by DevCanyon] Sticky header too large for content – can't find CSS to fix](https://wordpress.org/support/topic/sticky-header-too-large-for-content-cant-find-css-to-fix/)
 *  Plugin Author [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/sticky-header-too-large-for-content-cant-find-css-to-fix/#post-7099461)
 * Is it working now? I see it looks good.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Sticky Header by DevCanyon] Need to include menu items linking php code](https://wordpress.org/support/topic/need-to-include-menu-items-linking-php-code/)
 *  Plugin Author [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/need-to-include-menu-items-linking-php-code/#post-7145039)
 * There are filters available in this plugin, like `asmh_middle_menu_before` and`
   asmh_middle_menu_after`, which means to put HTML content before or after main
   menu.
 * So to put anything before the main menu and to float it right, you can do this:
 *     ```
       add_filter('asmh_middle_menu_before', function() {
           return '<div style="float:right;">Content</div>';
       });
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Sticky Header by DevCanyon] Sticky header too large for content – can't find CSS to fix](https://wordpress.org/support/topic/sticky-header-too-large-for-content-cant-find-css-to-fix/)
 *  Plugin Author [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/sticky-header-too-large-for-content-cant-find-css-to-fix/#post-7099439)
 * This is tricky indeed, something is probably interfering in plugin’s css. Will
   look more and get back to you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Sticky Header by DevCanyon] Sticky menu- OK, fixed menu at top of page disapearing](https://wordpress.org/support/topic/sticky-menu-ok-fixed-menu-at-top-of-page-disapearing/)
 *  Plugin Author [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/sticky-menu-ok-fixed-menu-at-top-of-page-disapearing/#post-7124537)
 * SteveFromAus is right, this is only *sticky* header, it doesn’t replace your 
   header, it’s a free version. So, it appears only when you start scrolling and
   after the position you defined in settings.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress REST API (Version 2)] JSON response for scheduled posts](https://wordpress.org/support/topic/json-response-for-scheduled-posts/)
 *  Thread Starter [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/json-response-for-scheduled-posts/#post-6757619)
 * Yes that’s what I thought of course, it was more rhetorical 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress REST API (Version 2)] JSON response for scheduled posts](https://wordpress.org/support/topic/json-response-for-scheduled-posts/)
 *  Thread Starter [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/json-response-for-scheduled-posts/#post-6757587)
 * Great thanks, that was right direction.
 * I ended up with:
 *     ```
       function my_give_permissions( $allcaps, $cap, $args ) {
           // check parameters here...
           $allcaps[$cap[0]] = true;
           return $allcaps;
       }
       ```
   
 * `add_filter( 'user_has_cap', 'my_give_permissions', 0, 3 );`
 * Here [https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-includes/capabilities.php#L1066](https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-includes/capabilities.php#L1066)
   it just checks whether $capabilities is empty or not, so that’s workaround.
 * All it needs is checking request parameters…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress REST API (Version 2)] Raw content](https://wordpress.org/support/topic/raw-content/)
 *  Thread Starter [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/raw-content/#post-6741881)
 * resolved
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress REST API (Version 2)] Raw content](https://wordpress.org/support/topic/raw-content/)
 *  Thread Starter [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/raw-content/#post-6741880)
 * Used `rest_prepare_post` filter
 * And then in callback…
 *     ```
       public static function rest_prepare($data, $post, $request) {
             $data->data['content']['raw'] = $post->post_content;
             return $data;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP REST API (WP API)] Action rest_api_init doesn't exist?](https://wordpress.org/support/topic/action-rest_api_init-doesnt-exist/)
 *  Thread Starter [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/action-rest_api_init-doesnt-exist/#post-6733881)
 * Ah there is another plugin: [https://wordpress.org/plugins/rest-api/](https://wordpress.org/plugins/rest-api/)
   
   That’s the one needed 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Sticky Header by DevCanyon] Font family options, colors, and sliding under header?](https://wordpress.org/support/topic/font-family-options-colors-and-sliding-under-header/)
 *  Plugin Author [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/font-family-options-colors-and-sliding-under-header/#post-6705097)
 * For font family you can put in Custom CSS tab like:
 * “.asmh-header {font-family: fantasy;}”
 * Colors are there as options, you should see them clearly 🙂
 * For keeping the body from scrolling above header you should lower you z-index
   css value for body element or some other site wrapper element, since sticky header
   has z-index=99, but it can be really any value, you could put it also in Custom
   CSS tab as much as you like.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Sticky Header by DevCanyon] Doesn't show on mobile since last update.](https://wordpress.org/support/topic/doesnt-show-on-mobile-since-last-update/)
 *  Plugin Author [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/doesnt-show-on-mobile-since-last-update/#post-6682632)
 * Ok always glad to be helpful! 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Sticky Header by DevCanyon] Hide menu on mobile and leaderboard AD](https://wordpress.org/support/topic/hide-menu-on-mobile-and-leaderboard-ad/)
 *  Plugin Author [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/hide-menu-on-mobile-and-leaderboard-ad/#post-6679259)
 * To add anything you can use hooks. Look at sections “Filters” on plugins page:
   [https://wordpress.org/plugins/awesome-sticky-header/](https://wordpress.org/plugins/awesome-sticky-header/)
 * You can use it like this:
 *     ```
       add_filter('asmh_middle_menu_before', function() {
           return '<div style="margin:20px;float:left;">test</div>';
       });
       ```
   
 * This hook allows you to add any content before main menu, which could be very
   helpful.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Sticky Header by DevCanyon] Hide menu on mobile and leaderboard AD](https://wordpress.org/support/topic/hide-menu-on-mobile-and-leaderboard-ad/)
 *  Plugin Author [Marko Jakic](https://wordpress.org/support/users/markzero/)
 * (@markzero)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/hide-menu-on-mobile-and-leaderboard-ad/#post-6679258)
 * Hi,
 * The “Hide menu if narrower than” setting simply means as it says – to hide *MENU*(
   not to disable the whole sticky header completely) on screen size smaller than
   provided, so it shows hamburger icon then instead of the menu.
 * However, I added option to version 1.0.3, it’s called: “Hide header if screen
   narrower than”. If you update the plugin you’ll have it.

Viewing 15 replies - 1 through 15 (of 50 total)

1 [2](https://wordpress.org/support/users/markzero/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/markzero/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/markzero/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/markzero/replies/page/2/?output_format=md)