Forum Replies Created

Viewing 1 replies (of 1 total)
  • Plugin Author asdasafdfsdfsdfsffdsf

    (@ahmet-kaya)

    Hi guys. For the first question, yes you need to make manuel changes. I’ll update the documentation. But I must say that it’s so easy. The only thing that you need is to call the plugin function in the loop.

    Open your themes single.php file.
    Find the code: “the_content();”
    And add this code, before the_content();

    <?php if (function_exists('wp_table_of_contents')) wp_table_of_contents(); ?>

    And yes, it requires Javascript. Actually it requires jQuery. Plugin automatically call the jQuery file from Google. You can customize the settings about jQuery by editing the plugin file. If you already use a jQuery file, and if you don’t want to plugin to call jQuery file, please edit $wp_icindekiler[“jquery”] variable in wp-table-of-contents.php and put “0” instead of “1”.

    And thanks for the second question. I realized that I made a little mistake on https://rastider.com/wordpress-table-of-contents-plugin. I think you copy the code from my website, right? If so, it’s about the little coding problem below.

    The wrong code:
    <?php if (function_exists(‘wp_table_of_content’)) wp_table_of_contents(); ?>

    The correct code:
    <?php if (function_exists('wp_table_of_contents')) wp_table_of_contents(); ?>

    The problem is that I put ‘’ insteaf of ”. Sorry for this mistake. Please let me know, if it works with this code. And thanks for the feedback.

Viewing 1 replies (of 1 total)