asarosenberg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: New wordpress user with nightmare assignmentYes it is. But you’ll need to hire someone who knows how to do it. ??
Forum: Fixing WordPress
In reply to: Questions about the possibility of customizing WordPressYes it is possible to make a site like that with WordPress. There are many different themes you can purchase. If you search you might find one that looks similar. If you have very specific ideas you will need to hire a programmer or do it yourself.
Forum: Fixing WordPress
In reply to: Changed base url and crashed site“Cannot modify header information” can mean that you have left a space somewhere in your code. Make sure you did not end php code ?> and left space or text after it in wp-config.php or functions.php.
Forum: Plugins
In reply to: [Grid Columns] Empty being added above columnsI’ve had this issue too. I think it’s a conflict with wpautop. Adding this to the themes functions.php works for me.
// Make sure wpautop runs AFTER our shortcode filters remove_filter( 'the_content', 'wpautop' ); add_filter( 'the_content', 'wpautop' , 12);
Forum: Fixing WordPress
In reply to: Echo Root Title<?php echo get_the_title($root_page_id);?>
Forum: Fixing WordPress
In reply to: Site SpeedThe size of core WordPress files does not affect your sites speed in any significant way and I don’t see any reason to compress any of them. If you think size is an issue have a look at your WordPress theme files and make sure it’s not using any unnecessary image/css/javascript.
I would guess though if you are having performance issues it’s more likely related to the database.
Forum: Fixing WordPress
In reply to: How to remove 'read more' buttonReplace it wherever you want the output to be the full text instead of the excerpt. If you don’t know where in the theme to do it, check with the authors of your theme. They know better than anyone how the theme is structured.
Forum: Fixing WordPress
In reply to: Font encodings?Did you install any fonts on your computer recently?
Forum: Fixing WordPress
In reply to: How to remove 'read more' buttonReplace the_excerpt() width the_content().
Forum: Fixing WordPress
In reply to: Theme name conflictYeah good point. It doesn’t seem very smart because there’s gotta be a lot of conflicts and more to come as the repository expands. But for now I guess I’ll just have to get more creative with my theme names. ??
Forum: Fixing WordPress
In reply to: editing wptexturizeYeah I see what you mean. That means that the first two but no the third have already been replaced with something else before the function runs. So the function can not find @ and % because they don’t exist in the content anymore.
I’m sorry I haven’t been able to help you better. I don’t have time to investigate this more today but if I have later I will get back to you. I’m sure there is a way to do this without having to change core files, it just requires some research.
Forum: Fixing WordPress
In reply to: editing wptexturizeNot sure I understand your … problem but you can change as many things as you like by just duplicating the line that does the replacement like so
function themename_special_replacements( $text ) { $content = str_replace( '@' , 'at' , $text ); $content = str_replace( '%' , 'percent' , $text ); $content = str_replace( '#' , 'hash' , $text ); return $content ; }
I don’t understand why it would work when you set the number to 1 instead of 12. 12 should make it run after wp_texturize not before. You want it to run after so that you can override whatever wp_texturize is doing.
Forum: Fixing WordPress
In reply to: editing wptexturizeAlso to reply to your previous question the number 12 specifies in which order the function is supposed to execute relative to other WordPress functions. You want a higher number than 10 if you want it to execute after other functions.
https://codex.www.ads-software.com/Function_Reference/add_filter
Forum: Fixing WordPress
In reply to: editing wptexturizeHi! There is an error in my code. Instead of returning $text you should return $content. So change
return $text;
toreturn $content;
and it should work fine.Forum: Fixing WordPress
In reply to: editing wptexturizeYou can hook in to the_content and/or other WordPress functions that print out text and make any replacement you want to it directly. Example:
add_filter( 'the_content' , 'themename_special_replacements' , 12); function themename_special_replacements( $text ) { $content = str_replace( '@' , 'at' , $text ); return $text; }
Add this to the functions.php file of your child theme. The code above replaces @ with “at” in WordPress content (the main text field of posts and pages).