I got a copy of the index.php file with a different name (profile.php) and i create a link to profile.php on the index.php file like this:
<a href ="<? php bloginfo ('template_url');?> / profile.php"> profile </ a>
But when I click on the link opens a completely blank page
You have unnecessary white spaces in the href attribute which creates the following link:
http://yourdomain.com/wp-content/themes/yourtheme%20/%20profile.php
Also in your code you have <? php but it should be without white space <?php
Change your line to:
<a href ="<?php bloginfo ('template_url');?>/profile.php"> profile </ a>
Related
I'd like to get rid of the default rss feed link that appears in my website's main menu. I was able to delete the default Archives link by deleting the corresponding code under [[menu.main]] in config.toml, but no similar code block exists for rss. I also tried going into index.html and deleting lines that appeared to correspond to rss to no avail. I'm using blogdown and the Hugo template Noteworthy to build my site.
To remove the RSS link from the menu in the Noteworthy theme, remove line 8 from the file /layouts/partials/nav.html. The line should look like this:
<a class="color-link nav-link" href="{{ .Site.RSSLink }}" target="_blank" rel="noopener" type="application/rss+xml">RSS</a>
As you can see, the RSS link was hardcoded into the template, so it would not be possible to remove it by editing the menu in config.toml.
Edit: The full location of the file will probably be themes/noteworthy/layouts/partials/nav.html.
This is my edit link in template file.
<a href=" http://plotsup.com/plotsup_plot/post-service/?ser_edit=6935"><?php
_e('Edit','wpestate');
?></a>
But when I click On that link It display blank page? What will be the possible reason?
It looks like the "u" of user_edit is missing
I have installed Ajaxify theme on my site (tekstyleankara.com). At the head of the it writes website's name on red background. I want to put the logo of the company there. How can I do that? Thanks.
I think I need to edit this line in header.php :
<div class="logo grid_2">
<h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
</div>
But I couldn't find out what I should write instead. I made several attempts but they didn't work.
For this you need to edit your stylesheet Theme.css file. To find this file you need to go to your admin panel of wordpress. There you can click appearance at the right side of your page and click on the editor. There you see the file theme.css. You need to edit it and search the line .logo. From there you can change your red background with your logo.
I'm helping out as admin on a WordPress site and we are adding the ability to "Like" individual post and pages and are using the following code;
<div class="fb-like" data-href=”<?php the_permalink(); ?>” data-send="false" data-width="450" data-show-faces="true"></div>
The Like button displays correctly but the url for some reason has an " added in the end rendering the link to become invalid. If I "echo" the result of the_permalink it displays the correct url.
Example;
Like is clicked on http://my.blog/is-cool/ but the displayed url on my timeline is http://my.blog/is-cool/".
Your double quote marks around the <?php the_permalink(); ?> are incorrect - they are the 'curly quotes'.
how i give permalinks to internal links of pages in wordpress
for example
web portal services 24/7 urgent support,
i want to display page name instead of page when user hover the internal link
I'm not sure that I understand your question, but you should first have a look here Permalinks in wordpress codex
If what you want is to simply display text on hover, the text that shows up on hover is in the html Title attribute. For example <a href="link" title="textonhover">
You can place this in the Title attribute to generate it: <?php echo get_the_title(ID) ?>