Title: Page Load Ajax
Author: Jacob N. Breetvelt
Published: <strong>మే 6, 2021</strong>
Last modified: మే 10, 2025

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/page-load-ajax.svg)

# Page Load Ajax

 By [Jacob N. Breetvelt](https://profiles.wordpress.org/opajaap/)

[Download](https://downloads.wordpress.org/plugin/page-load-ajax.1.7.zip)

 * [Details](https://te.wordpress.org/plugins/page-load-ajax/#description)
 * [Reviews](https://te.wordpress.org/plugins/page-load-ajax/#reviews)
 *  [Installation](https://te.wordpress.org/plugins/page-load-ajax/#installation)
 * [Development](https://te.wordpress.org/plugins/page-load-ajax/#developers)

 [Support](https://wordpress.org/support/plugin/page-load-ajax/)

## Description

The purpose of this plugin is to minimize page load time and resource usage by updating
the page title and content only rather then reloading the entire webpage.
 The new
contents and titles are fetched by ajax calls.

Restriction:
 As the rest of the page like header including all styles and scripts,
footer and sidebars are not affected, you should only use this to switch between
pages with the same overall layout and requirements.

You can enter shortcodes in the page content that will show up as a button or a 
text link.
 When activating the link, the pages title and content will be replaced
by the title and content of the specified page.

There are four possible independant arguments to the shortcode:
 – page (required).
This can be the page title or the page id. – text (optional). The button text or
textlink text. – title-elm (optional). The title element id or class if it is not
the default as entered on the settings page. – content-elm (optional). The content
element id or class if not default.

Examples: [pla page=”Tet page”] [pla page=”5″ text=”Go to the testpage”] [pla page
=”My Page” content-elm=”#my-div”]

## Installation

After standard installation, one should specify the preferences on the WP Settings-
> Page Load Ajax settings admin page.
 It is important to know the html element 
id or class of the page title and page content. This is dependant of the theme being
used. Id’s should be prefixed by a hashtag (#) and classes by a dot (.) when specifying
these settings. IMPORTANT: After installation: go to the WP Settings -> Permalinks
admin page and acitvate the Save Changes button, even when you did not changed anything.

## Reviews

![](https://secure.gravatar.com/avatar/c2e6b319da373ef8b7966149020a4b0413cd3125e824e76583ea209d96090a1e?
s=60&d=retro&r=g)

### 󠀁[works perfect!](https://wordpress.org/support/topic/works-perfect-1038/)󠁿

 [webproject1618](https://profiles.wordpress.org/webproject1618/) జూన్ 1, 2023

Great plugin!

![](https://secure.gravatar.com/avatar/f6b1db3cc9a2ccc7f48e49bb1478ec986d632acab1dcc42e4415cc3995c5cb90?
s=60&d=retro&r=g)

### 󠀁[Works like a charm!](https://wordpress.org/support/topic/works-like-a-charm-2005/)󠁿

 [simonvinder](https://profiles.wordpress.org/simonvinder/) నవంబర్ 12, 2021

I've been trying to wrap my head around loading content into a specfic div from 
other pages, without actually refreshing the page. Wanted to use Ajax, but being
the rookie I am, I never managed to do it. This did the trick! Great little plugin.

![](https://secure.gravatar.com/avatar/5161b5f5c3003b0de38b47dfabc9b1fdc91396af2b0672e3ceff0291070fbd7c?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-13847/)󠁿

 [Miguel](https://profiles.wordpress.org/mhagenaars/) అక్టోబర్ 13, 2021

Great plugin!

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/page-load-ajax/reviews/)

## Contributors & Developers

“Page Load Ajax” is open source software. The following people have contributed 
to this plugin.

Contributors

 *   [ Jacob N. Breetvelt ](https://profiles.wordpress.org/opajaap/)

“Page Load Ajax” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/page-load-ajax/contributors)
for their contributions.

[Translate “Page Load Ajax” into your language.](https://translate.wordpress.org/projects/wp-plugins/page-load-ajax)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/page-load-ajax/), check
out the [SVN repository](https://plugins.svn.wordpress.org/page-load-ajax/), or 
subscribe to the [development log](https://plugins.trac.wordpress.org/log/page-load-ajax/)
by [RSS](https://plugins.trac.wordpress.org/log/page-load-ajax/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial release.

#### 1.1

 * Added do_shortcode filter to widget text to enable [pla] shortcdes in widgets
   to create pseudo menus.

#### 1.2

 * It is no longer required to save the setup -> permalink admin page after installation.

#### 1.4

 * Added menu interface. You can now let your menu items work like PLA buttons.
   
   To activate, you need two tings to do: Tick the box ‘Convert menu’ on the pla
   settings page, and modify your theme, so the PLA menu walker will be actvated.
   Example:

Change:

    ```
        <?php
            wp_nav_menu( ['theme_location' => 'primary'] );
        ?>
    ```

Into:

    ```
        <?php
            $args = array();
            $args['theme_location'] = 'primary';

            // Add pla menu walker only when pla is activated
            if ( class_exists( 'PLA_Menu_Walker' ) ) {
                $args['walker'] = new PLA_Menu_Walker();
            }
            wp_nav_menu( $args );
        ?>
    ```

 * Added custom code. After the new content has been loaded to the page, a custom
   js function may be called to execute any js code.
    Write your custom js function
   and activate it e.g. by entering it in plugin Simple Custom CSS and JS. Your 
   function should have the name plaCustomFunction() and supports one argument being
   the current page id. Example that makes an element be hidden on page 13 and shown
   otherwise:
 *     ```
       <script>
           function plaCustomFunction( id ) {
   
               if ( id == 13 ) {
                   jQuery( '#MyDemoElm' ).hide();
               }
               else {
                   jQuery( '#MyDemoElm' ).show();
               }
           };
       </script>
       ```
   

#### 1.5

 * Added checkbox to the admin page: Update addressline. When ticked, the browsers
   addressline will be updated to the permalink of the fetched page.

#### 1.6

 * Now handles page with posts correctly.

#### 1.7

 * Fixed browser back functionality.

## Meta

 *  Version **1.7**
 *  Last updated **1 సంవత్సరం ago**
 *  Active installations **20+**
 *  WordPress version ** 5.1 or higher **
 *  Tested up to **6.8.10**
 *  PHP version ** 7.2 or higher **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/page-load-ajax/) మరియు [English (US)](https://wordpress.org/plugins/page-load-ajax/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/page-load-ajax)
 * Tags
 * [ajax](https://te.wordpress.org/plugins/tags/ajax/)[page](https://te.wordpress.org/plugins/tags/page/)
   [performance](https://te.wordpress.org/plugins/tags/performance/)
 *  [Advanced View](https://te.wordpress.org/plugins/page-load-ajax/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/page-load-ajax/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/page-load-ajax/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/page-load-ajax/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/page-load-ajax/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/page-load-ajax/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/page-load-ajax/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/page-load-ajax/reviews/)

## Contributors

 *   [ Jacob N. Breetvelt ](https://profiles.wordpress.org/opajaap/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/page-load-ajax/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=Page-Load-Ajax&item_number=Support-Open-Source&currency_code=USD&lc=US)