Good day! Such a question on WordPress. If you open the page in source view mode, then at the end of the page there is such a piece of code:

<!— fancybox —> <link rel="stylesheet" type="text/css" href="http://centr-schastja.ru/wp- content/plugins/wppage/js.." media="all"/> <script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script> <script type="text/javascript" src="http://centr-schastja.ru/wp- content/plugins/wppage/js.."></script> <script type="text/javascript"> jQuery(function ($) { $('.ps_make_order').fancybox({ 'padding': '20', 'autoScale': false, 'type': 'inline', 'href': '#order_popup' }); $('a[href$=".jpg"],a[href$=".png"],a[href$=".gif"]').fancybox(); }); </script> <!— //fancybox —> 

In the same place further it hooks jquery and wppage. I need to change something in this text, where the VP clings to this code?

  • one
    Why besides the footer. Most likely there and touches. Displayed by the wp_footer() function - tutankhamun
  • Well, where to see and edit wp_footer ()? - ArturHC
  • This function displays the content generated through the wp_footer (action) wp_footer . In particular, scripts registered by wp_enqueue_script() . In your theme (and, possibly, in plugins), you need to look for hooks add_action('wp_footer', ...) ; - tutankhamun
  • By the way, other options are possible, but not to cover everything in one question. Need to watch the whole topic - tutankhamun
  • look in the folder with the plugin wppage - pepel_xD

1 answer 1

you can do it easier, for example, take notes pad ++ or total commander, or something similar and search for a piece of code you need inside files (for example, search in <!— fancybox —> files). As a rule, the result will be one two files, then it will be easier to understand further.