Title: [Plugin: bib3html] Remove problem that bibtex code box will not open
Last modified: August 20, 2016

---

# [Plugin: bib3html] Remove problem that bibtex code box will not open

 *  [lagerkoller](https://wordpress.org/support/users/lagerkoller/)
 * (@lagerkoller)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-bib3html-remove-problem-that-bibtex-code-box-will-not-open/)
 * i had the problem that the code box containing the bibtex code would not open
   when i was clinking the little bibtex icon. i figured out that this was caused
   by a wrong value of the href attribute of the bibtex image’s a element. insted
   of just the value of the code element (sth. like ‘#40e99364’) it would contain
   the full url (sth. like [http://johannesluderschmidt.de/lang/de/publications#40e99364](http://johannesluderschmidt.de/lang/de/publications#40e99364))
   which broke the jQuery script behind this link. however, i solved the problem
   by changing the file js/bib3html.js accordingly:
 *     ```
       var $j = jQuery.noConflict();
       $j(document).ready(function()
       	{
       	  // Toggle Single Bibtex entry
       	  $j('a.bibtex_toggle').click(function()
       		{
       			var hrefVal = $j(this).attr("href");
       			var hashStart = hrefVal.indexOf("#");
       			hrefVal = hrefVal.substr(hashStart, hrefVal.length);
       			$j(hrefVal).toggle();
       		    return false;
       		});
   
       	});
       ```
   
 * i just remove the rest of the url and take only the anchor link value of the 
   a element.
 * [http://wordpress.org/extend/plugins/bib3html/](http://wordpress.org/extend/plugins/bib3html/)

The topic ‘[Plugin: bib3html] Remove problem that bibtex code box will not open’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bib3html.svg)
 * [bib3html](https://wordpress.org/plugins/bib3html/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bib3html/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bib3html/)
 * [Active Topics](https://wordpress.org/support/plugin/bib3html/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bib3html/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bib3html/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [lagerkoller](https://wordpress.org/support/users/lagerkoller/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-bib3html-remove-problem-that-bibtex-code-box-will-not-open/)
 * Status: not resolved