We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [text]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
26
votes
9answers
50k views

Stop WordPress automatically adding <br> tags to post content

Is there a way to stop WordPress from automatically inserting <br> tags when adding returns in the WordPress text editor. I would like for it to behave more like a code editor where I can ...
16
votes
2answers
18k views

can I add a custom format to the format option in the text panel?

In the text editor, where you can set headings and other settings, is it possible to add your own styles for clients to use? and even remove the unnecessary ones?
10
votes
6answers
18k views

How to Create Editable Blocks of Text for the Homepage?

I'm making a site based on WordPress. It's not going to seem a blog or WP. Just a website. So WP acts like backend where the client can edit the text blocks. Question: How can I put block of text on ...
5
votes
5answers
32k views

How to retrieve text only from wp_content() not from wp_excerpt()?

I'm currently developing a website with WordPress 3.5 and I need to retrieve Post Text (Only text, not include images) at Archive Page. I can retrieve it with wp_excerpt() method without any problems. ...
5
votes
4answers
5k views

Export all posts as individual plain txt files

I wish to export all of my posts as individual plain text files. So, the format may be something like: title.txt   Title: title Pub date: date Category: cat Lorem ipsum dolor sit amet, ...
5
votes
2answers
735 views

Problem in wordpress with “-”

I have problem in Wordpress after migrating my website. In title tag (<title>) I have "&#8211;" instead of "-" For the browser it's good, in the title it shows good. But in html code is "&...
4
votes
1answer
1k views

How can I input a single right-to-left paragraph (Hebrew) into an English page/post?

I have an English blog. In one of the pages I want to include a Hebrew paragraph between two English paragraphs (I expect the English text to be left-aligned and the Hebrew text to be right-aligned). ...
4
votes
1answer
8k views

How to keep &nbsp; non-breaking spaces in the visual editor?

I often add &nbsp; between connecting words so they break down together to a new line in important text. Switching to visual tab then back to text tab removes these. What can I do to keep them and ...
4
votes
1answer
2k views

Automatically decrease font size for long words

I am working on an e-commerce site in which post and product titles will need to be displayed in fairly narrow divs. I would like to set a specific font size for words which can naturally fit in the ...
3
votes
3answers
5k views

Load post with a different template?

Let's say I have a single.php file with a certain layout (graphic intensive). I want to create a sort of plain-text version of the same page that is only called when the user clicks the provided link....
3
votes
3answers
6k views

How to make shortcode to hide selection of text from post or page?

is there any shortcode or a plugin that will add new quicktag, like this example: [hidemytext]some hidden text[/hidemytext] and any text inside those tag is hidden from the post or from the page. ...
3
votes
1answer
1k views

How to hide the Text Area in the Post Edit screen

Is there a way to hide the text area box in my custom post edit screen? All entry is done through taxonomy check boxes and a couple custom fields. I want no entry in the text area. As an alternative,...
2
votes
2answers
15k views

How to remove images from showing in a post with the_content()?

Trying to learn more about creating my own themes and not using any plugins I wanted an ability to display all the images in a post excluding the thumbnail in my single-foobar.php file and I can do ...
2
votes
2answers
1k views

How to search and replace text in all posts of a wordpress.com blog (NOT wordpress.org one)?

I have some texts that need to be replaced in every posts in my blog. Is it possible to do that? ps (I need to tag this question as search-and-replace but not enough reputation to do that. Please add ...
2
votes
2answers
51 views

Add Descriptive text to Widget text box so users can see what they contain

If you have like 20 text box widgets and you are using widget logic or something to selectively display them on various pages, it gets confusing what content is in each box IF you are not using the ...
2
votes
1answer
2k views

Adding a custom line of text to php code

The below code is used to pull in my Tweets and post them as individual blog posts on my Wordpress site. I would like to add a "Follow me on Twitter link" after the tweet when it is displayed in the ...
2
votes
1answer
355 views

Global, network-wide shortcodes or text replace functions

What I'm trying to achieve is a simple text-replace functions, that would be available to any site in my Wordpress Network. Basically I want to: Change [--] into &mdash; (—), Be able to ...
2
votes
2answers
2k views

Remove text tab

I would like to ask whether there is a function to remove/turn off the Text tab for users ? Enough good codes here to make a clean CMS, only this one I can not find.
2
votes
0answers
57 views

How to make shortcode output display where I choose

There are tons of post about this, but in my case, i see no echo(so i can change for return) in the shortcode.php file of the plug in, i did not developed this plug in, i need to fix the problem that ...
2
votes
5answers
16k views

remove <div class=“textwidget”> from text-widget

When you add a text widget to a sidebar in Wordpress the widget includes this code <div class="textwidget"> How do I remove this without editing the core? FYI - I think this line is located ...
1
vote
4answers
8k views

Hide content-box on specific pages (in admin)?

Is this possible to do somehow? In some pages i use a custom box plugin and i don't need to show the content box on some of those pages. Is it possible to hide it by page template? Or ID if template ...
1
vote
2answers
4k views

string translation in functions.php not working

I used the following code in functions.php to translate some text: add_filter('gettext', 'aad_translate_words_array'); add_filter('ngettext', 'aad_translate_words_array'); function ...
1
vote
3answers
9k views

How to copy/paste web content with photos into my blog

I use my wordpress blog for research... When I write about something, the firs thing I do is research of what's already out there on given topic. What I want to do is to be able to copy paste parts of ...
1
vote
2answers
318 views

Custom color does not stick

I use a custom color for certain words on my web site. Every time want to use that color I need to click the Text Color icon and Customize... I then type in the RGB. Problem: It doesn't save that ...
1
vote
1answer
56 views

content gets scrambled

Every time someone edits our blog the content is displaying all wrong. It looks perfect in the wysiwyg editor but when you publish the page the content is completely wrong (pictures displayed next to ...
1
vote
3answers
2k views

Escaping Quotes

For some reason when i try to put like a embeded video my video has slashes inside the code, but if I add it in the template itself then the code is fine i was told its "escaping quotes" anyhow this ...
1
vote
1answer
1k views

printf and _n in this example?

what is the last $count in this example? printf( _n( 'You have published %s post.', 'You have published %s posts.', $count, 'myplugin' ), $count ); i guess the first one is to fill each %...
1
vote
1answer
438 views

Post specific text based on category displayed

So I'm working on a site and I need a news page that is slightly different. It is a post category but I want the text echoed at the top of the news category listing. <?php endif; ?> <?php /* ...
1
vote
2answers
174 views

Instructions/Rules Inside Text Area

I know it is possible to change the "Enter Title Here". But is there’s a function to add text (“how to...”, “simple rules to post...”) inside the post text/input area! Any help?
1
vote
1answer
118 views

Add default text to multiple wysiwyg editors

I have a custom post type which has multiple wysiwyg editors within the same post. When creating a new post of this type, I wish to have default text in some of these wysiwyg editors but not in the ...
1
vote
2answers
1k views

Visual/Text tabs in wp editor Not Showing

I have a wordpress website that i have added custom meta boxes to the post. Custom meta boxes have an editor using wp_editor(), but the editor is refusing to show the visual/text tabs on the editor ...
1
vote
1answer
71 views

Store unmodified text content in database

I'd like to write my Posts (and other users their Comments) in plain text and let a Markdown engine run on it later. However the Editor seems to convert the text and replaces some characters when ...
1
vote
1answer
1k views

How can I highlight specific pieces of text within a blog post?

I have searched for a simple method to allow a user to highlight a specific piece of text with a user chosen color but have not found one readily apparent. I have found a few methods related to syntax ...
1
vote
1answer
253 views

Custom Fields - Taller editing area

Don't know if this is possible, but can the custom fields be adjusted to be taller in the admin panel? It's a bit tedious to have to stretch the textbox every time you want to edit an existing field ...
1
vote
1answer
902 views

How to load a post into an empty div tag anywhere across the pages?

Absolute beginner question: I need to load text into specific div tags across the page. On my html mockup its a lorem ispum text box waiting for wordpress to load the real content. So, how do i ...
1
vote
1answer
489 views

How to add a class to a link in text editor

The editors of my web are absolute noobs :) They don't now anything about CSS an HTML. Therefore I have a question: Some links should get a class for styling them as a nice button. Is it possible to ...
1
vote
1answer
637 views

copying text from ms word to wordpress post appears weird [closed]

someone has send me an article for blog post it is an msword file when i copy and paste the text in my wordpress blog post the preview shows like this some characters appear small , some big, i ...
1
vote
1answer
477 views

Preserve shortcode content formatting

How can I preserve the formatting of the content within a shortcode block when I switch back and forth between the visual and text editor in TinyMCE? As in, the stuff between [myshortcode] and [/...
1
vote
2answers
162 views

All text disappeared (seems to be a database problem) [closed]

I have an issue with text in my posts. The site is http://2buntu.com. As I don't own the server, I cannot get direct access to some things. I don't know what caused it but I think it was a plugin I ...
1
vote
2answers
2k views

Filter only the text in the_content

I tried to filter only the text in get_the_content for my home page, but its including my shortcode also, because in that page first row google map 2nd row text box i am using visual composer page ...
1
vote
4answers
3k views

HTML / Javascript in custom field textarea?

Is there a filter for allowing HTML / Javascript into a custom field textarea? I'm using get_post_meta. On the frontpage I want the HTML / Javascript to run, not to be displayed.
0
votes
1answer
222 views

Text Stating the Domain Name Appears on Every Page… How to Get Rid of It [closed]

For some reason, every page on my website has my domain name on the bottom of the page - to the right of the thumbnails. This never used to happen. I can see it in Firebug, but I still have no idea ...
0
votes
3answers
25 views

How to deactivate the text, that appears, when you hovering over topbar tabs? [closed]

I want to deactivate the text, that appears, when you're hovering over topbar tabs (I've marked it red in the screenshot). Im using the Oshine theme. Greetz
0
votes
1answer
195 views

Strange ASCII characters overlapping content

I have a Wordpress theme I'm working on. All of a sudden there are random ASCII characters overlapping the nav tabs inside the hamburger menu, font-awesome characters, and social icons. I have tried ...
0
votes
3answers
1k views

How to remove 'wordpress…' text from page titles in tabs

I am working on a site and sometimes I run into an error when logging out and on the site tab it says 'Wordpress Failure Notice'. I am trying to remove all instances of wordpress so users dont know Im ...
0
votes
1answer
1k views

Sidebar widget: Randomly select text from a given set

I have a sidebar text widget, which displays a nice quote that's related to the blog contents. I change the quote every now and then, And I'm looking for a way to create a set of quotes and display ...
0
votes
2answers
838 views

placeholder text in category form label

Is there a way to put a placeholder text in the category form label? Right now the label is empty and has a dropdown menu filled with categories. I want to make a dummy placeholder text which will be ...
0
votes
1answer
306 views

Change default italic from <i> to <em> in admin editor

I've noticed that the admin editor by default embeds any italic texts with <i> which I intend to use for icon styling. I much more prefer to wrap them with an <em>. How would I got about ...
0
votes
1answer
79 views

WordPress's “Text” Format

When using self-hosted WordPress, you have the option of writing in "Visual" or "Text" mode. Assuming there's no plugins installed, Is this "Text" format a well defined standard or pseudo standard? ...
0
votes
1answer
68 views

Adding a line of text to php code

My wordpress theme has a button to turn breadcrumbs on or off. I want to leave the breadcrumb turned off and place a line of text where the breadcrumb would display on all pages except the home page....