Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Reinier van den Assum

    (@fox_creation)

    Please be aware of a bug in the original code snippet (I can’t edit the post), causing the first heading to miss some highlight. This was caused because of index 0 resulting in a falsify ( index ) => false when index == 0.

    This has been fixed in https://github.com/foxcreation/FOXY_solutions/pull/20/files checking Number.isInteger( index ) which will be true for index == 0.
    FYI @philipfaster @etribalnick @theluckywp

    Thread Starter Reinier van den Assum

    (@fox_creation)

    @etribalnick as mentioned in my email reply you’ve checked almost all boxes uploading the JS, adding the functions.php script and css. Please double check whether all documents are added inside the Child-theme to prevent any overrides per Theme upgrade and that the references are correct and working (you should see the tableOfContentActiveScroll.js in your Developer Tools > Network tab and see the content of the file.

    In case of any other questions or comments, please feel free to reach out.

    @anthonybarro please do have a read at the other post I’ve referenced in my previous post. That is exactly the logic I’ve developed last week.

    https://ww.wp.xz.cn/support/topic/contribution-show-actively-watched-heading/

    It will require some coding (unfortunately) to hook this up, but hopefully Lucky WP TOC will integrate this extension into their main plugin. The final piece of javascript (library) can be found here:
    https://github.com/foxcreation/FOXY_solutions/blob/master/wp-content/themes/foxy-illdy/layout/js/tableOfContentActiveScroll.js

    In functions.php this scripts needs to be included and one needs to add the style highlighting as well.

    Find the PRs for my changes:
    https://github.com/foxcreation/FOXY_solutions/pull/10 – original post
    https://github.com/foxcreation/FOXY_solutions/pull/14 – fixes

    Please let me know whether this does answer your original question.

    @philcomputing @anthonybarro This is a bit tricky as the WP sidebar is position:relative and therefore position:sticky to this widget does not working.

    However, you can get this working applying the “Q2W3 Fixed Widget” plugin. This will enable a checkbox to each widget configuration to allow it becoming sticky. Note, you can only grant this to the lowest one, to prevent overlapping values.

    In other words:
    1) Configure the Table Of Content as last widget in that sidebar and make it sticky by selecting the Fixed Widget checkbox

    My settings for the Fixed Widget:
    – Margin-top: 75px (for my sticky header)
    – Margin-bottom: 50px (more on ethics)
    – Stop ID: footer (to prevent the TOC to run over the footer)

    Working implementation can be found here.

    More details can be found in my other post.

    Thread Starter Reinier van den Assum

    (@fox_creation)

    Thom, thank you for your response!
    My apologies if I didn’t explain myself properly.

    What I want, is a menu item in the admin bar (the left bar in WordPress dashboard), only visible for administrators, providing the manager mode of FileAway. For clarity I’ve made a screenshot (NSA is by the way, the name of my student association). In the screenshot I’ve loaded an iframe to show the wish. However, I would prefer to establish this without an iframe.

    After my previous post I’ve added some code to wp_function_open_admin_page wherefore the shortcode is available and thus the tags are replaced. Unfortunately, there is an error which I cannot fix. Most likely it is due the wrong directory paths. (See the current stage in another screenshot.

    Hope this clarifies my request a bit more. Am I doing this incorrectly or do I miss just some small steps?

    Looking forward to your response and hope you can help me and that I have explained myself clearly this time.

    Thanks in advance.
    Reinier

    My current code in theme/inc/tweaks.php (used for the two screenshots):

    function nsa_function_open_admin_page(){
     // echo '<iframe src="http://nsa.fox/nsa-files-manage/" style="width:100%;height:100%;min-height:900px;display:block;" />';
      include_once TEMPLATEPATH . '/../../plugins/file-away/file-away.php';
      $p = get_page(192);
      echo "<b>Trying to display the following:</b><br />";
      echo apply_filters('the_content', $p->post_content);
    
      $fa = new fileaway;
      $fu = new fileup();
      echo "<hr />";
      echo "<b>Shortcuts FileUp & FileAway exists</b>: ". (shortcode_exists('fileup') ? 'true' : 'false');
    
      echo "<hr /> After apply_filters('the_content', \$string), this results:";
     	echo apply_filters('the_content', $p->post_content);
    }

    Thread Starter Reinier van den Assum

    (@fox_creation)

    Hi Peter,
    That indeed did the trick!
    The issue about the offset of the menu can be found on:
    http://www.nsamsterdam.nl

    Resize the windows to less than 600px and click on the responsive menu (scrolls in from right). Then enlarge the window in width till over 600px, wherefore the responsive menu will nicely scroll out of the screen to the right. Now resize the window again to less than 600px, such that the Threelines occur. Click on the Threelines and see what I mention 😉

    By the way, my next response will have some delay, due to work obligations. Looking forward to resolve this ‘issue’ (with low priority).

    And thanks again for the solution for my first case!

    Keep up the good work!
    Reinier

    Thread Starter Reinier van den Assum

    (@fox_creation)

    Hi Peter,

    No apologies needed! It is a free plugin you provide and no man on earth is perfect. That’s the whole idea behind the ‘develop communities’ right? I’m just fulfilling my obligations as ‘Responsive menu community member’ 😉

    I’ve just updated the plugin using the WordPress tool.
    Thanks for fixing this problem!

    Two other small bugs I’ve ran into:
    – If I’m correctly, the ‘ignore parent clicks’ is not working. When I click a parent menu item it still hides the responsive menu
    – When resizing the screen while the responsive menu is out, the awesome animation scrolls out the menu, however, when resizing to the size including the responsive menu, the offsets are probably screwed.

    I think the latter one is not important to fix with priority, but more that it might indicate other issues.

    The first would be great if you could have a look at that.

    Keep up the good work
    and thanks for your quick response!

    Kind regards,
    Reinier

    Thread Starter Reinier van den Assum

    (@fox_creation)

    Yeah it is weird. I’ve deactivated all plugins, no effect.
    I’ve found a solution, although I doubt whether it is really a solution 😉
    At my server I’ve used Installatron to install a fresh WordPress site. There I’ve uploaded my theme, which worked perfectly..

    Probably something is invalid in my own wordpress version, wherefore there is a bug in the theme part.. Very confusing this..

    However, I think I have to manually convert all settings made and continue in the online version..

    Thread Starter Reinier van den Assum

    (@fox_creation)

    Jeffrey thanks for your reply!
    I’ve added
    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    in my wp-config.php
    But no success..

    And yes, I’ve uploaded all documents and did the test myself to upload it multiple times and overwrite when new..

Viewing 9 replies - 1 through 9 (of 9 total)