[Solved] Change link URL to a different link depending on the page

Try something along the lines of this… $(document).ready(function() { var url = window.location.href; var UrlofpageX = url.indexOf(‘theurlyouwanttolookfor’); if (UrlofpageX >= 0) { $(‘.yourlink’).append(‘<a href=”https://website-B”><li>Your different link</li></a>’); } else { $(‘.yourlink’).append(‘<a href=”https://website-A”><li>Your original link</li></a>’); } }); So what happens here is you get the URL of the page that you’re currently on. It gets stored in … Read more

[Solved] Notice: Undefined variable: after_widget in ….wp-content/plugins/wps-pro-login/includes/class-wps-pro-login-widget.php on line 200 [closed]

Notice: Undefined variable: after_widget in ….wp-content/plugins/wps-pro-login/includes/class-wps-pro-login-widget.php on line 200 [closed] solved Notice: Undefined variable: after_widget in ….wp-content/plugins/wps-pro-login/includes/class-wps-pro-login-widget.php on line 200 [closed]

[Solved] sidebar on the shop page is not showing but showing in blog and single product pages only [closed]

Answer: To make appear sidebar in shop page or else first we should check some default possible ways . step 1: check in theme customising- layout&styling the size of layout switched to full width.() step 2: after clicking widget option to customise widget in the shop page ,if you see notice as ‘your theme has … Read more

[Solved] How do I use a JavaScript variable in PHP? [closed]

Javascript and PHP don’t actually know anything about one another. However, you can use PHP to write to JavaScript. So in my_functions.php you could do this: <?php $myGlobalSongIndex = ‘0’; // or however you want to assign this else…. ?> <script type = “text/javascript”> var song_index = <?php print myGlobalSongIndex; ?>; Then in shortcodes.php on … Read more

[Solved] Fatal error: Switch statements may only contain one default clause (php7)

You can not use a case statement inside a case. Try this corrected code switch ( $type ) { case ‘heading’: echo ‘</td></tr><tr valign=”top”><td colspan=”2″><h4>’ . $desc . ‘</h4>’; break; case ‘checkbox’: echo ‘<input class=”checkbox’ . $field_class . ‘” type=”checkbox” id=”‘ . $id . ‘” name=”‘ . $shortname_options . ‘[‘ . $id . ‘]’ . … Read more

[Solved] Action to database

You need to react on a click with an ajax function. i.e. $(‘#your_button_id’).bind(‘click’, function () { function_with_ajax(); }) function function_with_ajax() { $.ajax({ here you could call the update.php script and transmit dynamic data }); } solved Action to database

[Solved] Move my site content up WordPress [closed]

Remove the padding in your css, comment it out body { overflow-x: hidden; /* padding-top: 80px; */ } The file is http://greatrateprint.website/wp-content/themes/printing-shop/style.min.css?ver=1.0 Learn to inspect your webpage it tools like chrome inspector. 0 solved Move my site content up WordPress [closed]

[Solved] Something on my site doesnt display until I refresh the page

Go into wp-ecommerce/wpsc-includes/shopping_cart_functions.php and adjusting this line if ( isset( $cart ) ) { echo wpsc_shopping_basket_internals( $cart, false, true ); } to this //if ( isset( $cart ) ) { echo wpsc_shopping_basket_internals( $cart, false, true ); //} solved Something on my site doesnt display until I refresh the page

[Solved] Would your website perform better if you created stylesheets for each screen size, rather than using a feature such as Bootstrap?

A quick test case shows that Chrome, at least, fetches all the stylesheets no matter what the media query says. This isn’t really surprising as users can resize windows. It holds true for device-width as well though. So there are no savings at all since all the stylesheets are downloaded. This comes with the additional … Read more

[Solved] I moved a wordpress website to my server and the home page shows up but why not any other pages? [closed]

We dont know about your setup but there are 3 things that can cause this. Goto settings> permalink and click on “Save Settings” If the above doesn’t work goto wp-config and add define(‘WP_HOME’, ‘http://example.com’); define(‘WP_SITEURL’, ‘http://example.com’); Check your .htaccess for base directory path, if your site is in a subdirectory you should replace it with … Read more