Dani Llewellyn
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Website homepage not loading if has query string, WHY?This is because of the second line below, which is found in your
/app/themes/almero-sturents/dist/js/app.jsfile 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 sohomewill 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 listHi,
To display your tags, you want a short-code like below:
[a-z-listing display="terms" taxonomy="post_tag"]Forum: Plugins
In reply to: [A-Z Listing] AZ links are scrolling to the bottom of the letter sections.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 awp_enqueue_script()call to your theme’sfunctions.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.Forum: Plugins
In reply to: [A-Z Listing] How to show two columns of alphabetsI 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.phpinto your theme or child-theme’s folder and edit it to suit your purposes. The file in your theme should be saved aswp-content/themes/[your-theme]/a-z-listing.php.Forum: Plugins
In reply to: [A-Z Listing] Displaying Only Post Tags in Alphabetical Orderawesome! 🙂
Forum: Plugins
In reply to: [A-Z Listing] How to show two columns of alphabetsHi,
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?
Forum: Plugins
In reply to: [A-Z Listing] Shows a extrange listI’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.
Forum: Plugins
In reply to: [A-Z Listing] Displaying Only Post Tags in Alphabetical OrderHi,
Try the following shortcode:
[a-z-listing display="terms" taxonomy="post_tag"]I hope this gets you going 🙂
Forum: Plugins
In reply to: [A-Z Listing] Shows a extrange listHi,
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
listterm from thecategorytaxonomy. The second will show all pages that are assigned theespanolterm.It is important to realise that a post will appear in both listings if they are assigned both
listandespanol:- 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
espanolwill not appear in the first listing.
Forum: Plugins
In reply to: [A-Z Listing] Listing by last name@concertravellers can you start a new thread for your question, as you’ve hijacked someone else’s question here.
Forum: Plugins
In reply to: [A-Z Listing] Listing by last nameI’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.orEsq.orIV, 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 ofDe La Rossa– in this case it will only index onRossa.Forum: Plugins
In reply to: [A-Z Listing] Add a custom urlthe_letters()should be$a_z_query->the_letters().Forum: Plugins
In reply to: [A-Z Listing] Listing by last nameHi,
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:
Forum: Plugins
In reply to: [A-Z Listing] Add a custom urlThe
targetattribute 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 (withouttarget=).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 fromwp-content/plugins/a-z-listing/templates/a-z-listing.phpand customise that. You will want to find line57with 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(); ?>">- This reply was modified 5 years, 12 months ago by Dani Llewellyn.