Forum Replies Created

Viewing 15 replies - 31 through 45 (of 226 total)
  • How about this:

    (1) Create a list of top-level page IDs by querying your wp_posts table based on post_parent (0), post_type (page), and post_status (publish).
    (2) For each ID, do a str_replace on the page-item-ID class.

    – Tim

    Forum: Plugins
    In reply to: Pages

    The styling changes needed will depend on your theme, but the general idea is to style the list items in your Page lists to match the anchors. This might be easy or extremely difficult, depending on how your Page lists are currently styled.

    To keep working with the second option, add “a.plp_disabled { cursor: default }” to your style.css theme file.

    Future releases of the plugin may well do more to prevent disabled links behaving like links without the need to make manual changes to your stylesheet; I’ll give it some thought.

    – Tim

    Hi Mel,

    You have two options here:

    (1) Rework your style.css theme file so that it’s the list items that are styled rather than the anchors, or at least so that the list item styling matches the anchor styling (preferred solution).
    (2) Enable the “Unlink using javascript” option on the Settings > Page Lists Plus page in the dashboard.

    – Tim

    List items containing parent pages should have the classes “current_page_parent” and “current_page_ancestor”. In your theme’s stylesheet, you just need to style .current_page_ancestor (or perhaps .current_page_ancestor a) in whatever way .current_page_item (or .current_page_item a) is already styled.

    – Tim

    Hi Tracy,

    Just <a href="#Footer">Footer</a> should do it.

    – Tim

    A link to your website might help us to advise.

    Depending on which theme you’re using, you navbar could be a Page list, a category list, hard-coded, or something else.

    If it’s a Page list, then creating a new Page would normally add a link to your navbar. If it’s a category list, then creating a new category would normally add a link to your navbar. If it’s hard-coded, then you’ll need to edit your header.php theme file.

    Without more information, it’s difficult to be any more specific than that.

    – Tim

    Forum: Plugins
    In reply to: Pages

    Hi,

    You could try Page Lists Plus.

    (1) Install and activate.
    (2) On the Settings > Page Lists Plus page in the dashboard, check the “Link” checkbox (in the “Page-Specific Options” section) and then “Save Changes”.
    (3) Go to the edit screen for each Page that you want to unlink, scroll down to the “Page Lists Plus” box, uncheck the “Link” box, and then “Update Page”.

    Depending on whether your theme’s Page list styling relies on anchor tags being present, this may cause some styling problems (because unlinking Page links removes these). If it does, then you can either fix the styling (preferred option), or:

    (4) On the Settings > Page Lists Plus page in the dashboard, check the “Unlink using javascript” option (in the “Global Options” section) and then “Save Changes”.

    Hope that helps.

    – Tim

    This should be well within WP’s capabilities.

    (1) No problem. N.B. I suggest using Posts rather than Pages to access WP’s category functionality.
    (2) No problem; this is built in.
    (3) You could have a simple custom plugin coded to do this if need be, but I’d suggest doing this using categories too.
    (4) WP’s templating capabilities should make this pretty straightforward.

    – Tim

    Hi vidloader,

    I think you’re referring to Page Lists Plus.

    The problem that you describe results when a Page is unlinked, which removes its anchor tags, and the theme styling relies on anchor tags being present.

    The latest version (v1.1.2, released yesterday), provides an “Unlink using javascript” option, which disables links without removing their anchor tags, so shouldn’t affect styling.

    Best practice is to use the original, non-javascript unlink option, and to fix your theme’s styling, but the new feature provides a plan B for those who are unable to do this.

    – Tim

    Just an update: As of v1.1.2, PLP’s default behaviour is to exclude the descendants of excluded Pages. This should work better for most users, but can be disabled (through the “Exclude children of excluded pages” option on the Settings > Page Lists Plus page in the dashboard) if need be.

    This reply’s a little late, but it may help others: Once you’ve loaded your custom template, instead of “return” you need “exit”.

    – Tim

    Hi Jeff,

    I just found this thread (for future reference, support requests submitted through the email link on the Settings > Page Lists Plus screen in the dashboard are more likely to get a prompt response).

    Looking at your site, you seem to have found a solution. Would you mind explaining what it was?

    Thanks,

    – Tim

    I was having exactly the problem described in the original post. In my case, deactivating WP Campaign Monitor fixed it.

    It seems that a range of plugins can cause this. Does anyone know what the common factor might be?

    – Tim

    Hi Rick,

    I just found this thread. (For future reference, support requests submitted using the email link on the Settings > Page Lists Plus page in the dashboard tend to get my attention more quickly.)

    If you use Page Lists Plus to unlink an item in your Page lists then it will replace a list item containing a link with a list item containing bare text. If your Page list styling works by styling links contained in list items, then this will cause a problem: your unlinked list item won’t be styled to match your links.

    The solution to this is to modify your theme’s stylesheet so that your Page list styling works by styling list items rather than links. I appreciate that that will be easier to do for some themes than for others.

    Further revisions of PLP are unlikely to solve this problem, because it isn’t a PLP issue so much as a theme issue: PLP is already outputting the correct HTML, but theme authors who haven’t anticipated users unlinking items in Page lists haven’t styled Page lists with this possibility in mind. (That said, I do have one idea for how this might be made to work…)

    Thankfully most of the other features of PLP change the HTML in less dramatic ways than this, so don’t give rise to this kind of issue.

    – Tim

    Is there a reason that you’re using just one category for your blog page?

    The normal way to set up a site like this would be to create a Page called “Home” and another called “Blog”. Then on the Settings > Reading page in your dashboard you change “Front page displays” to “A static page” and select “Home”, and set “Blog” as your Posts page.

    With your site set up like that, wp_list_pages() will return both Home and Blog along with all of your other Pages, so there’s no need to have multiple Page lists interspersed with hard-coded links.

    – Tim

Viewing 15 replies - 31 through 45 (of 226 total)