I have a perfectly working language switcher at the moment on my blog --> oihanevalbuenaredondo.be
The thing is. I don't want the language switching links in my sidebar. The plugin that I installed only allows me to drag the widget to the sidebar. So there isn't a visible code that I can just copy and paste somewhere else. (i want it at the top of my page above the header).
I have consulted the help page of the plugin which says that I can put the code pll_the_languages( $args ); between the brackets, I need to insert a certian code. anywhere I want to switch the language. But I have no idea how. Because that code looks like a div that you put in your css. This is what the only box where I can insert my code --> image. thats the box where I can put my code in , that's what will show up above my header. I also have another page where I can put some css, div styles,...
this is the help page where they explain it: https://polylang.pro/doc/the-language-switcher/
Can anyone tell me the code that I can insert in the box of the image?
Related
I have made an web page. There are two iframes
In it. First is of index and second one is description page. I want that when I click on the any index hyperlink, then it is displayed on main description page.
How it will be possible? please give me the HTML code
You can use a button and when clicking it, change the url of the iFrame using Javascript like this:
document.getElementById('iframe-id').src = newLink;
You can use the data-attribute to store the wanted link in your html.
In case you want to do that: It is not possible to react to things outside of an iFrame through an iFrame. So you cannot put a link in iFrame1 and have it reload iFrame2, because those are two different websites and don't see each other.
Now, idk what exactly you are planing to do, but I really hope, that you don't want to make your entire site like that. Using iFrames is really only useful for things like inserting widgets (like Codepen etc.), but should never be used to display information from your own site. If you don't want to copy your html for every site then use PHP. If you don't want to reload your entire webpage (which is pretty much never a problem) you can use AJAX-requests to load parts of your website. (Frameworks like React.js, Angular.js and Vue.js do that for you)
I am building a general website that also has a documentation page. For the docs page I'm using mkdocs. I would like a link in the docs page, ideally in the top right corner, that goes back to my main webpage. I know how to put links inside the docs, but I'd like this to appear like a header. Is there a way to do this?
No, this is not possible at this time. However, this is the subject of issue #989 and may be added in the future.
I made a drop down menu using HTML and CSS. Something like this: http://sneznipark-kg.si/
How can i put a menu in external file(so that i don't need to make changes to it on every page individually)?
I could use iframes, but the problem there is, that elements that "drop down", are only visible in iframe, not on the main page.
I found some solutions using PHP, but i cant use those, because contract with my server provider doesn't include databases (so i cant use PHP, right?).
I think you are looking for:
How to Make Website Navigations with PHP Includes:
http://www.youtube.com/watch?v=IMh2cGIX41g
Simple PHP/HTML navbar for a static website:
http://www.youtube.com/watch?v=v8PUIVn3NFE
As mentioned above, you should be able to use PHP.
If you're not opposed to jquery AND both files are on the same domain. You can use .load().
http://api.jquery.com/load/
You can use any container as a place holder. Like a div, then load the html page into the div. It will put the entire page into the div. So you probably just need to add the menu part, and not the entire html markup.
I am using weebly as my website builder. I am not able to put Adsense advertisement in the vertical menu - I am only allowed to put it in the content window if I use the editor.
I assume I will have to modify the css/html and create content panel in this area (see screenshot) but unfortunately I have no idea how can I do it. Any ideas please?
Put an adsense ad under the navigation menu seems to be impossible without modify the HTML and CSS code.
To do it, you just have to export your theme (Settings > Un-published > Download the archive) and import it (Design > All themes > My Custom Themes > Import theme). An advice, to import the theme with success, read the recommandations because, otherwise, you will have error messages. After, edit the navigation menu in your new custom theme, add your adsense code, probably, in the #sidebar div and save modifications.
I hope I could help you and say me if you have any other problem.
You can insert anything on your vertical menu. I've done that 100%. I was able to insert a search button on the navigation bar and surprisingly, you can insert anything on it.
The technique is simple, just place the HTML on the Lay out area under Design Tab. Then insert the CSS on your sites header or on the main-style.css.
This is rather a long tutorial to make it clear to you. Here is my tutorial on how to insert an element to your navigation: http://www.myweeblytricks.com/2014/07/inserting-search-box-in-weebly.html
Good luck!
Another much simpler way would be add the Column element beside your content, and adjust the settings of the Adsense Element to 'Skyscraper'
Im using wordpress.com to host my blog. When you click on the site image, it takes you back to the blog home page and not the homepage the belongs to my site.
I know how to change this with an installed wordpress through the editor menu.
However, I dont have any of these option on wordpress.com, however, I have full access to mutate stuff through css.
Is there a way to force CSS to make the changes for me.
Site
However, I want it to read
Site
Just to recap, I dont have an option to change this through the editor. My only option of changing this is through CSS.
I was thinking to use something like this to replace the text inside the herf. But I cant even get it to work with the example text.
Thanks a million.
No - CSS is a read-only way to style page content, not change the content itself (which that tag is a part of).