Nav text
-
Hi, Mike. I apologize for what is probably going to be a pretty weird post. I updated WordPress and my theme, and everything broke. It looks like the theme I had been using is just broken, no real explanation, so I’ve switched to another one, at least temporarily. But, in the time I’ve been using Webcomic, I’ve wanted my navigation text centered, and to display “First, Last, Next, Current” as its options, rather than the default symbols. I had previously been using an old fix from the Google Group days to edit the loop_start.php file, but now that throws an error.
Additionally, adding CSS to pretty much any theme doesn’t seem to be changing the nav anymore. Frustrated with my inability to change the nav symbols to text, I used the CSS you posted in an older thread to use images (https://gist.github.com/mgsisk/e9bfd8b61089e4eee293). But even though I’ve added that to the stylesheet, nothing has changed, as you can see on the site: https://www.comicsfromspace.com. I know nothing about php, so I feel totally lost, but I really don’t understand why the CSS isn’t taking. Any help you can offer would be much appreciated.
Here’s what’s currently in the style sheet:
.integrated-webcomic nav {
text-align: center;
}.integrated-webcomic nav a {
display: inline-block;
height: 34px; /* or however tall your navigation images are */
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
width: 77px; /* or however wide your navigation images are */
}.integrated-webcomic nav .first-webcomic-link {
background: url(“https://comicsfromspace.com/wp-content/uploads/2015/05/first.png”);
}.integrated-webcomic nav .previous-webcomic-link {
background: url(“https://comicsfromspace.com/wp-content/uploads/2015/05/previous.png”);
}.integrated-webcomic nav .next-webcomic-link {
background: url(“https://comicsfromspace.com/wp-content/uploads/2015/05/next.png”);
}.integrated-webcomic nav .last-webcomic-link {
background: url(“https://comicsfromspace.com/wp-content/uploads/2015/05/current.png”);
}Even the center line isn’t working. Here’s an example of the code that used to work in loop_start.php:
<nav class=”webcomic-above”>
? ??<?php first_webcomic_link(?‘%link’,?‘« First’?);??>
? ??<?php previous_webcomic_link(?‘%link’,?‘‹ Previous’?);??>
? ? ? ??<?php random_webcomic_link(?‘%link’,?‘ ‘);??>
? ??<?php next_webcomic_link(?‘%link’,?‘Next ›’?);??>
? ??<?php last_webcomic_link(?‘%link’,?‘Current »’?);??>
</nav><!– .webcomic-above –>And here’s the error that displays instead of the site when I use the above code in loop_start:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/comics12/public_html/wp-content/plugins/webcomic/-/php/integrate/loop_start.php on line 39
- The topic ‘Nav text’ is closed to new replies.