I have a simple question. I do not know how to add custom url in my latest version of wordpress today.
In the following snap.
The top menu is the one that i want to customize. Inspecting it and adding
a style of display none, i got the result. But I do not know how to add this Customize->custom-url. Do any one know how to ..
The following is the source code as follows:
<div class="full-container">
<a href="http://www.keynesdeepak.com/blog/" title="Deepak’s Website" rel="home" class="logo" style="
/* display: none; */
"><img src="http://www.keynesdeepak.com/blog/wp-content/uploads/2017/10/deepak_logo.png" class="logo-height-constrain" width="369" height="214" alt="Deepak's Website Logo"><h1 class="site-title logo-title" style="">Deepak's Website</h1></a>
<div id="search-icon">
<div id="search-icon-icon"><div class="vantage-icon-search"></div></div>
<form method="get" class="searchform" action="http://www.keynesdeepak.com/blog/" role="search" style="width: 1080px;">
<input type="text" class="field" name="s" value="" placeholder="Search">
</form>
</div>
<div id="so-mobilenav-standard-1" data-id="1" class="so-mobilenav-standard"></div><div class="menu" style="
"><ul>
<li class="current_page_item"><span class="icon"></span>Home</li><li class="page_item page-item-45"><span class="icon"></span>Blog</li>
<li class="page_item page-item-41"><span class="icon"></span>Contact Me</li>
<li class="page_item page-item-43"><span class="icon"></span>Gallery</li>
</ul></div>
<div id="so-mobilenav-mobile-1" data-id="1" class="so-mobilenav-mobile"></div><div class="menu-mobilenav-container"><ul id="mobile-nav-item-wrap-1" class="menu"><li><span class="mobile-nav-icon"></span>Menu</li></ul></div> </div>
Go to Appearance -> Menus and add new custom link to your menu and drag it according to the order you want.
see the screenshot below:
Edit your first url, go to theme appearance editor
<a href="http://www.keynesdeepak.com/blog/" title="Deepak’s Website" rel="home" class="logo" style="
Related
I'm trying to make tabbed comments section for WordPress. I use jQuery UI tabs to make it work. I have styled radio switches between tags but it does not works. When I click a tab, link click happens and radio button does not change.
my code for first <li> element looks like this:
<li class="active ui-state-default ui-corner-top ui-tabs-active ui-state-active" id="comments-evolved-Facebook-control" role="tab" tabindex="0" aria-controls="comments-evolved-Facebook-tab" aria-labelledby="ui-id-1" aria-selected="true" aria-expanded="true">
<a href="#comments-evolved-Facebook-tab" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">
<div class="switch switch-Facebook">
<input name="multicomments" id="Facebook-toggle" class="switch-control" type="radio">
<label class="switch-toggle" for="Facebook-toggle">
<div class="switch-handle"><span><i class="icon-multicommentsFacebook"></i></span>
</div>
</label>
</div><span id="comments-evolved-Facebook-label">Label Example</span>
</a>
</li>
see actual WordPress page: Page with comments
Solved! Here is the jQuery code I added.
jQuery('#".$tab."').click(function() {
jQuery('#".$tab."-toggle').prop('checked', true);
});
`".$tab."` is the `<li>` element ID
I am working on a project with Meteor JS (version 1.2) using the accounts-password package for user sign up / sign in.
I am using - or at least try to use - Zurb Foundation 5 (version 5.3) for my projekt. I tested the ewall:foundation package and the juliancwirko:zf5 package and both works well.
For accounts i added the useraccounts:foundation package.
Using the {{> atForm}} tamplate on a page works also well. The SignIn/SignUp Form displays correctly.
But using it in a fixed top NavBar does not work. It displays it not correctly. (See pictures and source below.)
I am getting NO errors in the console that something is not loading correctly.
I assume the useraccounts:foundation package to display a button/link in the navbar and then show a modal/popup with the login form.
My Question: Is any of the packages broken or am I using them wrong in any way?
Or is my assumption, that the useraccounts:foundation package should display the signin form in a nav bar with a modal, just wrong? If so, what do I need to do to get that desired behavior in my app?
The App displays the signin form in the page correctly, but in the navbar wrong.
In the mobile view ...
... it displays also not correctly.
I made a simple projekt without any router etc to test just the above packages, here is the source:
project/client/main.html
<head>
<title>ZF5 Demo</title>
</head>
<body>
{{> header}}
{{> content}}
</body>
project/client/header.html
<template name="header">
<nav class="top-bar" data-topbar="">
<ul class="title-area">
<li class="name">
<h1>ZF5 Demo</h1>
</li>
<li class="toggle-topbar menu-icon"><span>menu</span></li>
</ul>
<section style="left: 0%;" class="top-bar-section">
<ul class="right">
<li>Home</li>
<li>{{> atForm}}</li>
</ul>
</section>
</nav>
</template>
project/client/header.js
Template.header.rendered = function () {
$(document).foundation('reflow');
}
project/client/content.js
<template name="content">
<section class="row">
<div class="large-12 columns">
<div class="panel">
<h1>Content</h1>
{{> atForm}}
</div>
</div>
</section>
</template>
The rendered HTML looks like that (only the navbar part).
<body>
<nav data-topbar="" class="top-bar">
<ul class="title-area">
<li class="name">
<h1>ZF5 Demo</h1>
</li>
<li class="toggle-topbar menu-icon"><span>menu</span></li>
</ul>
<section class="top-bar-section" style="left: 0%;">
<ul class="right">
<li>Home</li>
<li>
<div class="at-form">
<div class="at-title">
<h3>Sign In</h3>
</div>
<div class="at-pwd-form">
<form method="POST" action="#" novalidate="" id="at-pwd-form" role="form">
<div class="at-input row">
<div class="large-12 columns">
<label for="at-field-email">
Email
</label>
<input aria-label="Email " placeholder="Email" name="at-field-email" id="at-field-email" type="email">
</div>
</div>
<div class="at-input row">
<div class="large-12 columns">
<label for="at-field-password">
Password
</label>
<input aria-label="Password " placeholder="Password" name="at-field-password" id="at-field-password" type="password">
</div>
</div>
<button id="at-btn" class="at-btn button" type="submit">
Sign In
</button>
</form>
</div>
<div class="at-signup-link">
<p>
Don't have an account?
<a class="at-link at-signup" id="at-signUp" href="#">Register</a>
</p>
</div>
</div>
</li>
</ul>
</section></nav>
[...content...]</body>
EDIT
I tried to wrap the {{> atForm}} template into a dropdown in project/client/header.html:
<template name="header">
<nav class="top-bar" data-topbar="">
<ul class="title-area">
<li class="name">
<h1>ZF5 Demo</h1>
</li>
<li class="toggle-topbar menu-icon"><span>menu</span></li>
</ul>
<section style="left: 0%;" class="top-bar-section">
<ul class="right">
<li>Home</li>
<li>
<a data-dropdown="signin-dropdown" aria-controls="signin-dropdown" aria-expanded="false">Sign In</a>
<div id="signin-dropdown" data-dropdown-content class="f-dropdown content" aria-hidden="true">
<div>
{{> atForm}}
</div>
</div>
</li>
</ul>
</section>
</nav>
</template>
The result looks like this:
Now the Menu Button looks better, ...
... but the LogIn Form is rendered incorrect.
I also tried out several other things and nothing worked out.
I think this is a problem only with the way I use foundation, because I am new to that framework and don't understand every detail.
So I will stick with the SignIn Modal Form like shown in that example.
I'm using these tabs on a page to keep all the information needed on one page.
My question is, when I link from another page, would it be possible to open a specific tab on load? What should I look for? Hope You can help me out here.
Thank you.
<ul class="tabs">
<li>
<input type="radio" name="tabs" id="tab_how" checked />
<label for="tab_how">Something here</label>
<div id="tab-content" class="tab-content">
</div>
</li>
<li>
<input type="radio" name="tabs" id="tab_support" />
<label for="tab_support">Something else here</label>
<div id="tab-content" class="tab-content">
</div>
</li>
</ul>
Add a name or id to you ul as anchor:
<ul id="target_tab" class="tabs">
for the link:
Link
Hope this is what you are looking for.
I'm trying to give a different background-color to my button when it is active. The HTML code is as below.
<div class="tabs">
<div class="tab-content">
<div id="tab1" class="tab active">
<!-- some content -->
</div>
<div id="tab2" class="tab">
<!-- some content -->
</div>
<div id="tab3" class="tab">
<!-- some content -->
</div>
<ul class="tab-links">
<li class="active">
<a href="#tab1"><span class="numer_viti">bla bla</span>
<p class="arrow-up"><p class="cmimet_ne_vite">BUTTON ACTIVE</p></p></a>
</li>
<li>
<a href="#tab2"><span class="numer_viti">bla bla</span>
<p class="arrow-up"><p class="cmimet_ne_vite">BUTTON</p></p></a>
</li>
<li>
<a href="#tab3"><span class="numer_viti">bla bla</span>
<p class="arrow-up"><p class="cmimet_ne_vite">BUTTON</p></p></a>
</li>
</ul>
</div>
</div>
I used both this codes in my CSS files and i didn't sow nothing happened:
This is the CSS code for my project:
.cmimet_ne_vite:active
{
background:#787878;
}
.cmimet_ne_vite.active
{
background:#787878;
}
So who knows were is the problem to help me resolve it?
You have no element with both classes "cmimet_ne_vite" and "active". Instead you have a .cmimet_ne_vite element which is a descendant of your .active element, so instead of .cmimet_ne_vite.active you'll need to use:
.active .cmimet_ne_vite {
background:#787878;
}
Furthermore, you cannot wrap two <p> elements within each other. The browser will render this as two separate elements. Change:
<p class="arrow-up">
<p class="cmimet_ne_vite">BUTTON</p>
</p>
To:
<p class="arrow-up">
<span class="cmimet_ne_vite">BUTTON</span>
</p>
Or something similar.
Finally, if this element is intended to be used as a button you'll need to give it a role attribute set to "button":
<span class="cmimet_ne_vite" role="button">BUTTON</span>
I'm building a LHN in Sitefinity and ran into an issue styling it. When a page is set as the active page, it gets the sfsel class. Unfortunately, it also applies it to the parent page when a subpage is active. I need to get the styling so when a subpage is active, only that list item is highlighted, but when only the parent "About" page is active, it still gets highlighted.
http://jsfiddle.net/4NnaZ/1/
<div class="sfNavWrp sfNavTreeviewWrp leftnav">
<div class="k-widget k-treeview" tabindex="0" role="tree" aria-activedescendant="C001_ctl00_ctl00_navigationUl_tv_active">
<ul class="sfNavTreeview sfNavList k-group k-treeview-lines" id="C001_ctl00_ctl00_navigationUl" data-role="treeview">
<li class="k-item k-first k-last" data-uid="ceac0efa-1b50-46c7-a351-945f05a6eb87" role="treeitem" data-expanded="true" aria-expanded="true">
<div class="k-top k-bot"><span class="k-icon k-minus"></span><a class="sfSel k-in" href="../about">About</a>
</div>
<ul id="C001_ctl00_ctl00_ctl03_ctl00_childNodesContainer" class="k-group" style="display: block;">
<li class="k-item" data-uid="3b1f4e90-1945-4c93-a770-43787527d7bf" role="treeitem" id="C001_ctl00_ctl00_navigationUl_tv_active">
<div class="k-top"><a class="sfSel k-in k-state-focused" href="locations">Locations</a>
</div>
</li>
<li class="k-item" data-uid="48d48d44-55ee-4bf7-9fcd-20380c18b991" role="treeitem">
<div class="k-mid">Careers
</div>
</li>
<li class="k-item" data-uid="267e4a18-8489-45c2-bef3-1efcba63916f" role="treeitem">
<div class="k-mid">Producer Board
</div>
</li>
<li class="k-item k-last" data-uid="d75d7989-3815-49b3-856c-c4d24dcd5dc8" role="treeitem">
<div class="k-bot">Contact Information
</div>
</li>
</ul>
</li>
</ul>
</div>
isn't k-state-focused the class you should use to highlihgt only current link/page ?
I believe this is a jQuery script producing this classname.
You can modify your code to set a class for that purpose , http://www.sitefinity.com/developer-network/forums/general-discussions-/highlight-current-page