• Resolved neuroine

    (@neuroine)


    On every page where I add awesome support shortcode at the end of page we can find additional code. Why? Is it necessary?

    <div id="wp-link-backdrop" style="display: none"></div>
    <div id="wp-link-wrap" class="wp-core-ui" style="display: none" role="dialog" aria-labelledby="link-modal-title">
    		<form id="wp-link" tabindex="-1">
    		<input type="hidden" id="_ajax_linking_nonce" name="_ajax_linking_nonce" value="c8a73b5e67">		<h1 id="link-modal-title">Insert/edit link</h1>
    		<button type="button" id="wp-link-close"><span class="screen-reader-text">Close</span></button>
    		<div id="link-selector">
    			<div id="link-options">
    				<p class="howto" id="wplink-enter-url">Enter the destination URL</p>
    				<div>
    					<label><span>URL</span>
    					<input id="wp-link-url" type="text" aria-describedby="wplink-enter-url"></label>
    				</div>
    				<div class="wp-link-text-field">
    					<label><span>Link Text</span>
    					<input id="wp-link-text" type="text"></label>
    				</div>
    				<div class="link-target">
    					<label><span></span>
    					<input type="checkbox" id="wp-link-target"> Open link in a new tab</label>
    				</div>
    			</div>
    			<p class="howto" id="wplink-link-existing-content">Or link to existing content</p>
    			<div id="search-panel">
    				<div class="link-search-wrapper">
    					<label>
    						<span class="search-label">Search</span>
    						<input type="search" id="wp-link-search" class="link-search-field" autocomplete="off" aria-describedby="wplink-link-existing-content">
    						<span class="spinner"></span>
    					</label>
    				</div>
    				<div id="search-results" class="query-results" tabindex="0">
    					<ul></ul>
    					<div class="river-waiting">
    						<span class="spinner"></span>
    					</div>
    				</div>
    				<div id="most-recent-results" class="query-results" tabindex="0">
    					<div class="query-notice" id="query-notice-message">
    						<em class="query-notice-default">No search term specified. Showing recent items.</em>
    						<em class="query-notice-hint screen-reader-text">Search or use up and down arrow keys to select an item.</em>
    					</div>
    					<ul></ul>
    					<div class="river-waiting">
    						<span class="spinner"></span>
    					</div>
     				</div>
     			</div>
    		</div>
    		<div class="submitbox">
    			<div id="wp-link-cancel">
    				<button type="button" class="button">Cancel</button>
    			</div>
    			<div id="wp-link-update">
    				<input type="submit" value="Add Link" class="button button-primary" id="wp-link-submit" name="wp-link-submit">
    			</div>
    		</div>
    		</form>
    		</div>
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi:

    That code doesn’t belong to our plugin. Not sure why you’re seeing it but its not any of ours. It could be that your theme or one of your plugins are conflicting. I can provide instructions if you don’t know how to run a conflict check – just let me know and I’ll post them for you.

    Thanks.

    Thread Starter neuroine

    (@neuroine)

    But I copied this code from yours site: https://asdemo.awesomesupport.com/submit-ticket/

    It shows only on pages contains awesome support shortcode

    Hi:

    What exactly did you copy from our site? You shouldn’t need to copy anything from our site in order to get the plugin working.

    Thanks.

    Thread Starter neuroine

    (@neuroine)

    I opened the URL: https://asdemo.awesomesupport.com/submit-ticket/ and under the right mouse button I chose the display source code. You can find additional code before end of </body> tag right after WordPress enqueue scripts in footer.

    Appears when only Awesome Support plugin is enabled and the page has a shortcode [ticket-submit] or [tickets].

    If you set #wp-link-wrap to display: block then you will see a hidden additional form.

    I know that I don’t need to copy anything from yours site. I’m asking why this code is added at the end of my page and yours?

    • This reply was modified 6 years, 3 months ago by neuroine.

    Hi:

    If you’re asking about code that is only visible when you choose to display the source-code I don’t have a definitive answer for you on that. If you want to engage with the product code like that your best bet would be to engage with the developers via the github project: https://github.com/Awesome-Support/Awesome-Support.

    I initially thought the code you were referring to was showing up on the page to the end user. But if you’re just looking at the raw html code that the short-code is generating and have a concern about it then that’s a developer-to-developer type question and best addressed via github source-code project.

    Thanks.

    Plugin Author melliesou

    (@melliesou)

    Hi @neuroine,

    Looks like you are asking about some HTML code used by AJAX functions. AJAX functions are JavaScript code which interact with elements in the page to show/display content and allow the user to interact with the page/app. As Nigel mentioned, using the github repo as a starting point for discussion will help to sort out the details.

    Let me know if I can help further!

    Thread Starter neuroine

    (@neuroine)

    I’ve created issue on GitHub but I still waiting for the answer.

    https://github.com/Awesome-Support/Awesome-Support/issues/699

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Unnecessary code’ is closed to new replies.