From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steinar Bang Subject: Re: How to avoid "Listing 1" on all code examples in org2blog export to wordpress? Date: Sat, 28 Dec 2019 09:13:35 +0100 Message-ID: <868smwq34g.fsf@dod.no> References: <86lfqxpnf7.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53119) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1il7EE-0001TW-Me for emacs-orgmode@gnu.org; Sat, 28 Dec 2019 03:13:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1il7ED-0000um-Cl for emacs-orgmode@gnu.org; Sat, 28 Dec 2019 03:13:42 -0500 Received: from cadalora.default.sbang.uk0.bigv.io ([2001:41c9:1:424::90]:36600 helo=cadalora.bang.priv.no) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1il7ED-0000jN-4c for emacs-orgmode@gnu.org; Sat, 28 Dec 2019 03:13:41 -0500 Received: from mccoy (cm-84.211.250.118.getinternet.no [84.211.250.118]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id 4A3B8CD3C5 for ; Sat, 28 Dec 2019 08:13:37 +0000 (GMT) In-Reply-To: <86lfqxpnf7.fsf@dod.no> (Steinar Bang's message of "Fri, 27 Dec 2019 20:40:28 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org >>>>> Steinar Bang : > Platform: GNU Emacs 26.3 (build 1, i686-w64-mingw32) of 2019-08-29 > Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ c:/ProgramFiles/emacs-26.3-i686/share/emacs/26.3/lisp/org/) > Org2Blog 1.1.1 > When I export to wordpress I get "Listing 1" on all text or code > examples in the wordpress blog, se e.g. > https://steinar.bang.priv.no/2019/11/30/rewriting-applications-to-use-pax-jdbc-config-and-liquibase/ > Is there a way to lose the "Listing 1" text completely? I haven't been able to remove them from the export, which would have been my preferred solution, but I have been able to make them not show. I googled for 'org export "listing 1"' and found a mention of the CSS class listing-number, so I googled for 'org export "listing-number"' and found: https://github.com/emacs-china/org-mode/blob/master/etc/ORG-NEWS#listings-with-captions-are-now-numbered-in-html-export So from https://mysite.wordpress.com/wp-admin/ I clicked on Appearance->Customize and then clicked on CSS Then I pasted the following into the text field .listing-number { display: none; } and clicked on the "Publish" button. And then the "Listing 1" titles were gone (or at least: not shown) in the blogposts.