Forum Replies Created

Viewing 15 replies - 181 through 195 (of 927 total)
  • This is because of the second line below, which is found in your /app/themes/almero-sturents/dist/js/app.js file on line 426:

        var home = void 0;
        window.location.origin + '/' === window.location.href ? home = true : home = false;
        if (home === true) {
          setTimeout(function () {
            $("#app.animation").addClass('reveal');
            $(".al-loader").addClass('hide');
          }, 500);
        }

    You’re explicitly comparing the URL including any query string (the part from ? to the end) which will return false and so home will also be false, thereby never revealing the site.

    Hi,

    Connection reset means that something is between the browser and server that is killing the communication. This is likely to be either an extension you have installed in your browser, or software you have on your Windows system that is interfering. You need to experiment with stopping running applications and services to see if any of them are the cause. This isn’t a WordPress problem, however.

    Forum: Plugins
    In reply to: [A-Z Listing] Tag list
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    To display your tags, you want a short-code like below:

    [a-z-listing display="terms" taxonomy="post_tag"]
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    This is an interaction with your theme’s sticky header. I don’t know why, but the linked-to section is vertically offset by the size of the header (its height when you are scrolled to the top of the page). Presumably when the header is removed to replace with the sticky version the original height somehow remains and influences the browser’s decision on where to scroll when an anchor is clicked.

    Unfortunately, I don’t know how to solve this correctly, but you can try to use the scroll-fix javascript hack from the plugin to override the browser’s decision. The script is saved at wp-content/plugins/a-z-listing/scripts/a-z-listing-scroll-fix.js. I haven’t made it easy to enqueue the script, so I’ll make a note to add that ability. For now, you’ll need to copy the script into your theme and add a wp_enqueue_script() call to your theme’s functions.php:

    add_action( 'wp_enqueue_scripts', 'enqueue_a_z_scrollfix' );
    function enqueue_a_z_scrollfix() {
        wp_enqueue_script( 'a-z-scrollfix', get_template_directory_uri() . '/js/a-z-listing-scroll-fix.js', array(), '1.0', true );
    }

    This assumes you copied the javascript to wp-content/themes/$yourtheme/js/a-z-listing-scroll-fix.js.

    You may customise the offset that it applies by editing the script and locating the call to window.scrollBy(). The second number is an offset where a larger negative value will make the scrolled-to position be closer to the top of the page.

    Plugin Author Dani Llewellyn

    (@diddledani)

    I don’t know how to get it working like that, but you may override the template to try to get it working. Copy the file from wp-content/plugins/a-z-listing/templates/a-z-listing.php into your theme or child-theme’s folder and edit it to suit your purposes. The file in your theme should be saved as wp-content/themes/[your-theme]/a-z-listing.php.

    Plugin Author Dani Llewellyn

    (@diddledani)

    awesome! 🙂

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    I’m not sure what you’re requesting. Do you mean one of the following:

    • the letters in the sidebar widget to be arranged in a 2-letter-wide vertical column?
    • the letters at the top of the listing arranged in a 2-letter-wide vertical column?
    • the lists for each letter to be arranged in a grid with 2 lists for different letters alongside each other?
    • something else?
    Plugin Author Dani Llewellyn

    (@diddledani)

    I’m sorry, I still don’t understand what problem you’re facing.

    It might be that you are using the shortcode on a page whose address is used by WordPress for WordPress’ own functionality. Overriding the WordPress in-built mechanisms is difficult and needs a different approach than simply adding the shortcode to a page. You will need to edit your theme, or create a child theme, to add or override a suitable template to hijack the WordPress behaviours. The simplest solution is to just use a different address.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    Try the following shortcode:

    [a-z-listing display="terms" taxonomy="post_tag"]
    

    I hope this gets you going 🙂

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    I’m not sure I fully understand the problem you are experiencing. The first shortcode you added in your post above will show all pages that are assigned the list term from the category taxonomy. The second will show all pages that are assigned the espanol term.

    It is important to realise that a post will appear in both listings if they are assigned both list and espanol:

    • A post will only appear in the first list if they are assigned list.
    • A post will only appear in the second list when it is assigned to espanol.
    • A post assigned only espanol will not appear in the first listing.
    Plugin Author Dani Llewellyn

    (@diddledani)

    @concertravellers can you start a new thread for your question, as you’ve hijacked someone else’s question here.

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’m not sure I understand the form of name you’re referring to and what the correct interpretation of those names would be.

    The extension is fairly naive in that it takes the last word of the title and indexes based upon that. If the last word is a known suffix that you specify, such as Jr. or Esq. or IV, then the extension will skip over the suffix and use the next word from the end to index the title.

    Currently the extension does not work correctly with last-name prefix, names of the form Pedro De La Rossa, where you might want it to be indexed for all of De La Rossa – in this case it will only index on Rossa.

    Plugin Author Dani Llewellyn

    (@diddledani)

    the_letters() should be $a_z_query->the_letters().

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    If you want to get going quickly I have a paid extension that does this, which helps to support development costs of the a-z-listing plugin, at https://a-z-listing.com/product/proper-nouns-extension/.

    However, if you are proficient with PHP then you can code this yourself using the following filters:

    Plugin Author Dani Llewellyn

    (@diddledani)

    The target attribute doesn’t do that. It is for internal use to point the letters in the widget to a specific page, which should be edited to include a separate listing (without target=).

    To change the target of the titles shown in the listing, i.e. the titles of the posts, you need to create a template in your theme called a-z-listing.php. You can copy the default one from wp-content/plugins/a-z-listing/templates/a-z-listing.php and customise that. You will want to find line 57 with the following content:

    <a href="<?php $a_z_query->the_permalink(); ?>">
    

    You can change that to something like:

    <a href="https://387785-12.web1.fh-htwchur.ch/#<?php $a_z_query->the_item_id(); ?>">
    

    I think that will do what you are aiming to achieve..

    If the target page is on the same domain, you can also make it easier to move domains by dropping that part of the URL and rely on the browser expanding it:

    <a href="/#<?php $a_z_query->the_item_id(); ?>">
    
Viewing 15 replies - 181 through 195 (of 927 total)