Request for prettier widget IDs and sticky header scroll offset

Asked on May 28, 2015 in Feature Requests.

I’m really enjoying Layers, thanks for all the work people. A few requests:

For a single page design, the IDs of the various rows/widgets show up in the address bar looking a bit clunky. Could we have the option to edit the IDs in the Advanced > Widget Anchor ID field?

Also could we get an offset for the scroll to accommodate a sticky menu (much loage the Page Scroll to ID plugin on wordpress.org – where you can either specify a height in pixels or a element class/ID)? Currently if the menu is set to sticky it obscures the top of the relevant section.

headjog Layers User
Reply
  • Possible Answers to Your Question:

  • 2 Answer(s)
    Answered on August 21, 2015.

    It might not be the right way, but you can use the jQuery for this:

    
    jQuery(document).ready(function($) {
    
    $("#layers-widget-column-1").attr('id','services');
    
    $("#layers-widget-column-2").attr('id','portfolio');
    
    $("#layers-widget-column-3").attr('id','team');
    
    $("#layers-widget-column-4").attr('id','contact');
    
    });
    
    

    This can go into the header script area in the Header panel of the customizer.

    Or it can be added to your own js file through a child theme. Do not modify the Layers theme.js, as it is overwritten in every update.

    Doc: Child Themes: Including Scripts

    on August 21, 2015.
    Reply
    Answered on August 21, 2015.

    Hello,

    From a framework perspective, the IDs need to be generated dynamically to be user friendly and to ensure they are unique – this is the same method WordPress uses with the post class – there will always be a number on the end, unfortunately.

    The above Javascript workaround is appropriate when you want to customize those ids on a specific site.

    The header will only overlap the top of the first widget if you have overlay enabled (by design). Check out our smooth scrolling snippet if you need to set an offset.

    A plugin that cloaks links would probably be best, like https://wordpress.org/plugins/simple-link-cloaker/
    Your host may also provide a config in your cpanel that allows you to mask any url on your site so your main url always shows in the address bar.

    We are looking into replacing this with a way to add your own

    <a name=""></a>
    

    Creating children theme for classroom is hard because every child has his or her different psychology and we cannot just overlook this factor. Read check https://www.ihatewritingessays.com/ for the sake of knowing kids in a better ways. These classrooms are really good and help people in managing things in a better way.

    on January 30, 2020.

    I have the same question as headjog. I had similar problems while creating these educational website for my client. It seems like I have found the solution but anyway it was nice to hear an answer for you, guys.

    on May 31, 2020.

    Is this site using layers, Looking good presentations

    on October 9, 2020.

    I think that

    https://www.dumpsmate.com/DES-1241-exam.html is crucial for graduating from any university. Every student should know how to write and I think you should be able to do it, too. I would recommend you to take some extra classes or enroll in additional course.

    on October 22, 2020.

    Good afternoon. Do you have health problems? Or maybe you have problems with being overweight? I want to recommend you a great site about healthy eating, I have been looking for this for a long time. On this page you will find great recipes with all calories count. You can individually develop a diet for you personally. Go ahead.
    <a name=”

    https://healthy-food-near-me.com/savoy-cabbage-recipes-benefits-and-harms-to-the-body/“>

    https://healthy-food-near-me.com/savoy-cabbage-recipes-benefits-and-harms-to-the-body/</a>

    on October 22, 2020.

    Yeah this is good way, I love this rule. btw thanks

    on November 1, 2020.

    Do you like sports games? Did you know that with your knowledge of sports you can make good money. Sports betting is a great option for earning extra money. For more information, follow the link.
    https://1xmatch.com/grenadery-v-futbole-otbornaya-futbolnaya-pehota/

     
     
     
    on November 17, 2020.

    I am very amazed about this information and i am reading about it for the first time. But this is a great thing for the knowledge and the 99 papers is one of the very best and amazing websites on the internet. I have also read the e-books makes our child smarter and sharper.

    on November 18, 2020.

    It was the coding error which occurred from backend. And now, I’m sure that developer of ACT prep are now fixed them. And now, you don’t have any need to go back or reload your page for posting more than one ticket.

    on December 11, 2020.

    Thanks so much for this information. I have to let you know I concur on several of the points you make here and others may require some further review, but I can see your viewpoint. 토토

    on March 7, 2021.

    A lot of people having an incorrect image about the cash advance loans or sometimes refer it as bad credit payday loans.먹튀검증사이트

    on March 11, 2021.

    Such updates simplify and improve many technological processes. Sometimes it is necessary to organize special content for the organization of various projects, in such cases, I advise addressing the best blog writing service.

    on March 12, 2021.

    Thanks for sharing us. 토토사이트

    on March 15, 2021.

    Thanks for the nice blog. It was very useful for me. I’m happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. 가입머니

    on March 18, 2021.

    I needed to thank you for this phenomenal read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. Onewheel

    on March 28, 2021.

    I’m impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important.. Onewheel Pint Accessories

    on April 4, 2021.

    Our credit repair services work to fix past credit mistakes and verify credit report accuracy. Talk to a credit repair expert today!IT Support companies Cheviot Hills Los Angeles, California

    on April 8, 2021.

    All the best brands at one Place in Pakistan, Super Bazar online shopping in pakistan Best Deals available at discounted rates Cah on delivery Service in Karachi, Lahore, Rawalpindi, across Pakistan. Please visit our website for best online shopping experience. Thank You.

    on April 17, 2021.

    Please continue this great work and I look forward to more of your awesome blog posts. free cleanmymac 3 activation number

    on April 18, 2021.

    Wow! Such an amazing and helpful post this is. I really really love it. It’s so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also judi mpo slot

    on April 18, 2021.

    Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. Do Follow backlink’s

    on April 22, 2021.

    I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. eureka carts

    on April 28, 2021.

    The most complete guide on White Jade meanings, benefits, spiritual connection to the Zodiac, birthstone, numerology, and feng shui Shop White Jade. white jade meaning

    on May 21, 2021.

    That is really nice to hear. thank you for the update and good luck. North American Bancard ISO

    on May 23, 2021.
    Reply