• Resolved anzezala

    (@anzezala)


    Hello,
    i would like to make the plugin look like it does on the pictures. With the nice style. The problem is that I only get the a-z listing in vertical line with no style at all its just alphabet and then there are sites organised but also vertical. I’ve put the php code into functions.
    The first time like this and it crashed the site.
    <?php
    add_filter( ‘a-z-listing-add-styling’, ‘__return_true’ );
    ?>
    Then i’ve put this in and nothing happens.
    add_filter( ‘a-z-listing-add-styling’, ‘__return_true’ );
    Please help me. I am not that good with php

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi, as I’m apologising to others I need to apologise here too for missing the notification email about your post. Sorry :-(.

    The line add_filter( 'a-z-listing-add-styling', '__return_true' ); needs to be added into your theme’s functions.php file for the moment (I’m working on a clickable button to set this without requiring changing any files but it’s not ready just yet). If the functions.php file already exists then look for the first <?php and add the line directly underneath. Do not add a ?> if the functions.php file already existed, as that might break other preexisting code in the same file.

    If there isn’t a functions.php file in your theme, then make a new file with that name and insert the code:

    <?php
    add_filter( 'a-z-listing-add-styling', '__return_true' );

    Again, note the lack of adding ?>, but this is less important if you are making a new functions.php as there will be no other code to break.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Updating to version 1.2.0 or above should eliminate the need to add any custom hooks, like I said above, for adding the default stylesheet.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘in built styling’ is closed to new replies.