blog-tutorial-post-template

Blog

A simple jQuery script can add any URL to your website’s logo, though you will need to identify what ID or Class has been assigned to your logo’s containing element first.

Step 1. Navigate using the very top menu located outside of the RapidWeaver Window in the very top left of your screen. Next to the apple icon navigate to RapidWeaver > Preferences… (or hit CMD + ,) > General > Enable Web Developer Tools. This box will be unselected by default – select it before continuing.

Alternatively, open the page in Google Chrome.

Step 2. When viewing your website in preview mode (or in Google Chrome) locate the logo, right click and select “Inspect Element.”

Hemera Logo Inspect Element

This example is using the Hemera theme. We can see the image file in the HTML file that begins with <img and then the container of the image, which I have highlighted in the screenshot.

If you do not have a logo inserted, navigate to Setup and drag and drop your image file in the Site Logo field.

The container has 3 listed classes: frameBlock, content-color, logo. I am going to choose logo, which in jQuery or CSS has a period (.) before it, so logo would be typed as .logo for this example. If you’re using Hemera go ahead and do the same, but if not write down the class or id you wish to target. If an id is used, then place a hashtag (#) infront of the text instead of the period.

Step 3. Open the page Inspector

inspector

Navigate to the Header Section

RapidWeaver 6 Inspector Header

Navigate to the JavaScript Section

RapidWeaver 6 JavaScript Section

Step 4. Enter the following code:

1
2
3
jQuery(document).ready(function() {
     jQuery('.logo img').wrap('<a href="https://onelittledesigner.com">');
});</a>

Alternatively, you can download this as a Snippet file here:

hemeralogourlwrap.rwsnippet

Step 5. Edit the code.

Notice on the 2nd line first the selector, which is .logo img – this is targeting the logo image or <img that is found inside the HTML with the class of logo. Likely the img won’t change, though the class or id of the containing element will (this is discussed previously).

Next edit the URL or the portion that starts with http:// and change it to whatever URL you wish.

you are finished!

RapidWeaver Stack Tutorials

RapidWeaver Theme Tutorials

RapidWeaver Project Documentation

Tutorials and documentation for all 1LD Project files can be found at the link below.

See Documentation

Get the power of a framework, for the price of a theme, in the convenience of a prebuilt RapidWeaver project file

Blog

Live Search 2

Live Search 2 has been updated with new features, improvements, and important bug fixes – all designed to make your site’s search experience even faster and more precise.

This update is free and automatic for all existing customers.

Don’t own it yet? Now’s the perfect time to jump in — Live Search 2 is 30% off for a limited time! No code needed — your discount is automatically applied at checkout.

New Features:

  • Added support for exact match searches using quotation marks around parts of a search phrase.
  • New option to show a “Clear Input” button.
  • Added Replace Character feature.
  • Now supports two separately defined search bars on the same page.
  • New option to adjust z-index.

Improvements:

  • Index file generation now detects and ignores duplicate content, such as text found in every page header and footer.
  • If any pages are missing from the index file, they will now still be searched dynamically.
  • Index file data is now compressed to reduce file size.
  • Pages at https://website/folder/index.(php|html) and https://website/folder/ are now treated as duplicates and will not be indexed separately.
  • Search results container height now only stays fixed during pagination — it will shrink dynamically for new searches.
  • When searching custom sitemaps, the default sitemap will now be ignored.
  • The popout search results container will now automatically hide when the search input is empty.

Bug Fixes:

  • Fixed an issue that prevented custom text/language settings from applying correctly.
  • Fixed a bug where result descriptions could fail to display a local section title.
  • Fixed a bug that could trigger an error if suggestions were enabled but the stack was not published to the page.
  • Prevents form submission before the page is fully loaded, avoiding unwanted page refreshes on slow-loading pages. A loading indicator is shown until the page is ready.

Check it out in action!

© 2011 One Little Designer, 1 Little Designer (1LD)

RapidWeaver is a trademark of Realmac Software