paulwpxp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Html snippet to all of the postsIn case you do have some php coding experiences, just add this function to your child theme (or wrap it in a plugin format and use it).
function my_add_after_content($content) { if( is_single() && is_main_query() ) { $new_content = '<p class="myaftercontent">This is to added after content</p>'; $content = $content . $new_content; } return $content; } add_filter('the_content', 'my_add_after_content');But honestly, I would use this kind of plugin, Add Widget After Content, that adds sidebar area to the end of post so that we can use text widget (which now offers html and image functionality) in it.
Add Widget After Content
https://wordpress.org/plugins/add-widget-after-content/Forum: Fixing WordPress
In reply to: Category and Sub-categoryMaybe one of these could be helpful.
Admin Category Tree
https://wordpress.org/plugins/admin-category-tree/Adjust Admin Categories
https://wordpress.org/plugins/adjust-admin-categories/Please note that at the moment the tested up to WP version is out of date, so I’m not sure if it works with latest WP. You can test it on your local dev first.
Have you tried contacting your theme support? Since it’s a commercial theme, this forum is not the best place to help.
I would first try this: disable all plugins, and see if the issue goes away, the problem could be plugin conflict not the theme. If that doesn’t do it, try switching theme, use WP default theme and see if the problem goes away.
Forum: Fixing WordPress
In reply to: Gap Between PhotographsProblem is they are all float elements. A caption text that’s too long so it wrapped into 2 lines, this causes the first image in the following raw can not float all the way to the left.
Try edit this caption text “Montana Country Sunset (2)” to something shorter like “Sunset (2)” and you will see that the image with “Just over the Hill” caption will now float all the way to the left.
Quick fix is to add max-height to the caption text (I’m using Chrome and found that the value of 20px or lower fixes the issue).
.wp-caption-text { max-height: 20px; margin-bottom: 5px; font-size: 10px; }Please note, only the max-height fixes the issue, the margin-bottom and font-size is optional adjustment so everything spacing out better.
So that’s the quick fix to the problem asked, but the right way (or more standard way) to display images like this is to use WP native gallery funtion.
https://codex.wordpress.org/Gallery_Shortcode
I usually upload images directly via post (so they are all attached to that post), not via Media upload (images not attach to the post). With all images attached to post, I will just put a simple shortcode like this
[gallery columns="4"], and that’s it, WP does the rest.Forum: Fixing WordPress
In reply to: Banned Ip address – PHPMYADMIN is blankBanned IPs could be done with .htaccess, so I would first try to inspect the .htaccess. Also check all the security plugins in use, it could still keep the blocked ips in database and keep regenerating the .htaccess
Forum: Fixing WordPress
In reply to: Making a simple vertical (column) header.I’m presently trying to move the Header to the left as a simple column with 5 or 6 text links (to pages or categories).
Repositioning html elements is done via CSS. So you just need to work on the stylesheet. Use a browser’s web dev tool to inspect the elements and move it using CSS.
I don’t recall whether the index.html I have in my theme folder still has any influence on layout
WP theme folder doesn’t contain index.html. If one exists, I guess it’s not functioning as part of WP theme, it could be theme’s documentation or something.
Forum: Fixing WordPress
In reply to: website not working after migrationThe recommendation is NOT to change the url in GUID, keep it as is and the site will work just fine (if all other things done right)
https://codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Notebut all other links refer to old site must be changed to the new one
I normally use this when moving WP from local dev to real server
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/but lot of people use this kind of plugin to do the same job
https://wordpress.org/plugins/wp-migrate-db/Forum: Fixing WordPress
In reply to: Tags are being published as posts.Does you theme use Visual Composer version 5.4.2 or older? If that’s the case, it could be the incompatibility issue with WP4.9
Try switching to WP default theme (like TwentySeventeen) and see if the post-tag problem is gone. This is to rule out if something bundled with your theme is causing it.
Forum: Fixing WordPress
In reply to: Add/Replace FieldsNot exactly sure what external link and link title you wanted to insert.
In case it is an anchor text that wanted to appear in all posts, this is doable via text widget inside a widget area that’s registered to appear before (or after) post content. The text widget can also be controlled to appear conditionally based on WP conditional tags, like add this to only posts that has this tag or category.
If the above is what you wanted, look for info on how to add widget area into post content (like the after post widget), and look for a plugin that control appearance of widget based on conditional tags.
If this is not what you exactly looking for, please post your question again in Developing with WordPress sub forum here.
https://wordpress.org/support/forum/wp-advanced/Does you theme use Visual Composer version 5.4.2 or older? There are some known/bug issues of plugin/function conflicts with WP4.9
The one that might be your case is this:
Saving posts or pages is not possible in all browsers when using Visual Composer version 5.4.2 or older.
https://wordpress.org/support/topic/read-this-first-wordpress-4-9-master-list/Another thing to mention is that your site is at Bluehost and it automatically installs a caching plugin called Endurance Page Cache, just so you know that this might also cause problem viewing changes on updated version of your web page. Contact your hosting support for this.
Forum: Fixing WordPress
In reply to: Section background images not showing on live site after migratingIt’s browser cache. I usually do a hard refresh, press and hold Ctrl and then press F5, do this every time after changes made so that we can see the updated version of the web page.
Forum: Fixing WordPress
In reply to: My site is suddenly in list form and looks terribleThe site looks good as normal to me.
Try deactivate that plugin again and this time do a hard refresh (clear browser cache).
Forum: Fixing WordPress
In reply to: Error seperating content and graphics, changing menue and fontThe person that control (build, maintain) the server that this website is hosted on.
Forum: Fixing WordPress
In reply to: Content lostAs far as I can see, there is no .htaccess file on the webserver at all.
Visiting permalink page and even clicked save, and still there is no .htaccess, this also could be the problem, check on file permission and make sure WP is able to create file.
https://codex.wordpress.org/Changing_File_Permissions
http://www.wpbeginner.com/beginners-guide/how-to-fix-file-and-folder-permissions-error-in-wordpress/
Also it’s good to check wp-config.php see if it contains the correct info of db (name).
Forum: Fixing WordPress
In reply to: website not working after migrationIf the info in wp-config points to the correct db name, then we have to go check if the db itself really contains all the content. I would login to the server and access the db via phpmyadmin (or any other db tool that your host offers) and just browse through the db table especially the wp_post table, see if it really contains content. But do this only if you’re comfortable with database tool, beware that making mistakes could damage or change the content.
I suspected that the migration didn’t went through at all in the first place, leaving the site as if it’s freshly installed.
Anyway, since you have the backup, you can repeat importing the db again and see if it works this time.