Forum Replies Created

Viewing 15 replies - 1 through 15 (of 38 total)
  • I just posted a new plugin that address two of the most common complaints about the Twenty Eleven theme, lack of sidebars on some pages and the height of the header images:

    https://www.ads-software.com/extend/plugins/twenty-eleven-theme-extensions/

    All you need to do get the sidebars back is install the plugin, go to the Theme Extensions page and click a couple of checkboxes.

    It also provides a convenient place to put your CSS tweaks so you don’t have to go in and edit any of the theme files, and there are a couple of other options too. Online help is provided.

    You can try the “Embedder” plugin:

    https://www.ads-software.com/extend/plugins/embedder/

    It’s not specifically designed to embed ads, but it might be what you are looking for.

    Create an embed by pasting in the HTML code for the ad, and then select the “auto embed” option to insert the embed at the top of each post / page. You can also use tags and categories to control which posts the embed will be displayed on.

    Forum: Fixing WordPress
    In reply to: Youtube Video
    EnglishMike

    (@stringfold)

    Make sure the plugin you are using is still active.

    Alternatively to embed YouTube videos in your posts, all you need to do is put the URL (without the [youtube][/youtube] stuff) and WordPress will embed the videos automatically.

    EnglishMike

    (@stringfold)

    Well, it looks as though you have already done what you wanted to do ??

    If you really want the old home page back though, you should save the page in the Google cache that Clayton linked. I can see it too, so you should be able to. If you save it now, at least you have a copy, if you decide you need to rebuild it.

    You might also want to talk to Godaddy – they might have made a backup of the site when they transferred it for you.

    Good luck!

    EnglishMike

    (@stringfold)

    Excellent ideas, Clayton.

    EnglishMike

    (@stringfold)

    Oops!

    If you don’t have a back up anywhere, I’m afraid it’s probably gone for good. However, it might still be in the cache of your browser somewhere, so you might want to search through that as soon as possible:

    https://lifehacker.com/5477287/recover-recently-deleted-web-content-via-your-browsers-cache

    (You might want to try other people’s machines too if you know they have recently surfed to your site.)

    If you have access to your server’s Linux shell, and if you know what you are doing with Linux, you could try this:

    https://www.cyberciti.biz/tips/linuxunix-recover-deleted-files.html

    (I successfully used this process to locate a file I had deleted, but you really need to know what you are doing with Linux if you want to try this.)

    EnglishMike

    (@stringfold)

    Overlapping images is fairly complicated — you might be better off looking to see if there is a gallery-type plugin that will do it for you, or you might be able to find some Javascript code from somewhere.

    To do it yourself in CSS you need to look at the “position” style attribute along with the “top” and “left” (and maybe “right” and “bottom”).

    I am sure there are plenty of tutorials around that will help you like these:

    https://www.barelyfitz.com/screencast/html-training/css/positioning/
    https://www.echoecho.com/csslayers.htm

    Forum: Fixing WordPress
    In reply to: active url
    EnglishMike

    (@stringfold)

    A link in HTML is:

    <a href="https://.....">Link description</a>

    So that is what you will need to do with your HTML addresses to turn them into links.

    If you are using the WP editor, in Visual mode, you can use the link button in the toolbar, or go into HTML mode and put your links in the above format.

    EnglishMike

    (@stringfold)

    The buttons are probably being inserted using the:

    add_filter('the_content', ...)

    filter call either by the theme you are using or by a plugin you installed to embed the social buttons, which means that they will already be present in $content after the template calls “the_content()”.

    To put your code before the buttons, you will have to create your own filter function with a higher priority than the other filter, like this:

    add_filter('the_content', 'my_filter_function', 1)

    The default priority is 10 so any number below that should ensure your filter is called first.

    Alternatively, you could use the Embedder plugin for both the social buttons and your other embed code. You can set them both to auto-embed in whatever posts of pages you want, and set the order in which you want them to appear:

    https://www.ads-software.com/extend/plugins/embedder/

    (If you are just making a minor tweak, then I would advise just creating your own filter function as I described, but if you think you might be doing more embedding in future, the Embedder plugin might be worth a look.)

    Forum: Plugins
    In reply to: Shortcodes in Page Titles?
    EnglishMike

    (@stringfold)

    Yes, now you can — using the “Embedder” plugin.

    See this example here:

    https://moztools.com/wordpress/embedder-plugin/quick-start-global-embeds/

    The screenshot at the bottom shows post titles with embeds (which are essentially just a type of shortcode), but page titles are also supported.

    EnglishMike

    (@stringfold)

    You might find the Embedder plugin helpful if you do a lot of embedding:

    https://moztools.com/2010/11/23/stupid-embedder-tricks-2-youtube-video-embeds/

    As the article shows, you can add either add styles to the embed, or wrap them with a div or span and give it another class name.

    You can also define embed attributes that allow you to set different values every time you embed a video, if you like.

    Forum: Fixing WordPress
    In reply to: Post ID
    EnglishMike

    (@stringfold)

    Pages and posts are stored in the same database table (pages are essentially just a special type of post. Autosaves are also added to the same database table, which will keep the numbers bumping up too.

    In the end, the only thing to do is stop worrying about it. I think a lot of people are bugged by this at first, but after a while you’ll probably wonder why you ever did!

    The best thing to help you get there is not use post ids anywhere. Use permalinks that use the posts creation date and title instead. Out of sight, out of mind ??

    Forum: Fixing WordPress
    In reply to: repeating symbol
    EnglishMike

    (@stringfold)

    Well, there is a comment at the top of the source of your web page that says:

    <!--cat meow? category.php-->

    So I would suggest you look at that file — category.php.

    You will find it by going to Appearance >> Editor, and looking in the list on the right hand side of the page.

    It looks as through there is an extra ?> somewhere (all template code written in PHP must be enclosed in <?php … ?> brackets to distinguish it from HTML. Look for an extra ?> somewhere in that file (or it might be in one of the other files.

    Alternatively look for a line of code that begins with “echo” and has the ?> on it. That will also output those characters.

    Good luck!

    EnglishMike

    (@stringfold)

    You can’t create a new theme file from within WordPress. You either have to login to your server account and use the console to create the file in your theme’s directory, or you can upload (e.g. via FTP) an empty file to your theme’s directory.

    It would be nice if WordPress would add the capability of creating a new file within the Edit Theme page, but then, you probably should not be doing anything more than tweaking a couple of files from that page anyway!

    EnglishMike

    (@stringfold)

    You can use the Embedder plugin to do it, without having to play with template code:

    https://www.ads-software.com/extend/plugins/embedder/

    Create a global embed (Settings >> Embeds) and paste in the Facebook Like button embed HTML (you will have to get this yourself from Facebook if the Facebook plugin you are using doesn’t show you it).

    In the Auto-Embed section, you can select just before (or after) posts, and the button will only appear in posts, not pages as you want it.

    You can also select both Before and After at the button will appear in both places. (You might have to tweak the CSS styling of the button to get it too look exactly right.)

    Finally, you can even tell the plugin to exclude the button from posts with a specific tag or category, etc.

    So Embedder will do everything you need. The only slight complication is that you need to fetch the Facebook embed HTML yourself from here:

    https://developers.facebook.com/docs/reference/plugins/like

Viewing 15 replies - 1 through 15 (of 38 total)